# HG changeset patch # User Olaf Wintermann # Date 1689007237 -7200 # Node ID 96555c0ed875f5718f84e621665d5e74a6fc458d # Parent e5909dff0dbf6c44819eeaedeeb159e75f45854d update ucx diff -r e5909dff0dbf -r 96555c0ed875 ucx/array_list.c --- a/ucx/array_list.c Sun Jul 02 13:23:51 2023 +0200 +++ b/ucx/array_list.c Mon Jul 10 18:40:37 2023 +0200 @@ -103,7 +103,7 @@ } #ifndef CX_ARRAY_SWAP_SBO_SIZE -#define CX_ARRAY_SWAP_SBO_SIZE 512 +#define CX_ARRAY_SWAP_SBO_SIZE 128 #endif void cx_array_swap( diff -r e5909dff0dbf -r 96555c0ed875 ucx/cx/hash_map.h --- a/ucx/cx/hash_map.h Sun Jul 02 13:23:51 2023 +0200 +++ b/ucx/cx/hash_map.h Mon Jul 10 18:40:37 2023 +0200 @@ -74,7 +74,7 @@ * cxMapStorePointers() was called immediately after creation. * * @note Iterators provided by this hash map implementation provide the remove operation. - * The index value of an iterator is the incremented when the iterator advanced without removal. + * The index value of an iterator is incremented when the iterator advanced without removal. * In other words, when the iterator is finished, \c index==size . * * @param allocator the allocator to use @@ -96,7 +96,7 @@ * cxMapStorePointers() was called immediately after creation. * * @note Iterators provided by this hash map implementation provide the remove operation. - * The index value of an iterator is the incremented when the iterator advanced without removal. + * The index value of an iterator is incremented when the iterator advanced without removal. * In other words, when the iterator is finished, \c index==size . * * @param itemsize the size of one element diff -r e5909dff0dbf -r 96555c0ed875 ucx/cx/iterator.h --- a/ucx/cx/iterator.h Sun Jul 02 13:23:51 2023 +0200 +++ b/ucx/cx/iterator.h Mon Jul 10 18:40:37 2023 +0200 @@ -204,13 +204,13 @@ /** * Iterator value type. - * An iterator points to a certain element in an (possibly unbounded) chain of elements. + * An iterator points to a certain element in a (possibly unbounded) chain of elements. * Iterators that are based on collections (which have a defined "first" element), are supposed * to be "position-aware", which means that they keep track of the current index within the collection. * * @note Objects that are pointed to by an iterator are always mutable through that iterator. However, * this iterator cannot mutate the collection itself (add or remove elements) and any mutation of the - * collection by other means make this iterator invalid (regardless of what cxIteratorValid() returns). + * collection by other means makes this iterator invalid (regardless of what cxIteratorValid() returns). * * @see CxMutIterator */ diff -r e5909dff0dbf -r 96555c0ed875 ucx/cx/list.h --- a/ucx/cx/list.h Sun Jul 02 13:23:51 2023 +0200 +++ b/ucx/cx/list.h Mon Jul 10 18:40:37 2023 +0200 @@ -77,7 +77,7 @@ void (*destructor)(struct cx_list_s *list); /** - * Member function for inserting a single elements. + * Member function for inserting a single element. * Implementors SHOULD see to performant implementations for corner cases. */ int (*insert_element)( @@ -145,7 +145,7 @@ ); /** - * Member function for sorting the list in place. + * Member function for sorting the list in-place. */ void (*sort)(struct cx_list_s *list); @@ -584,7 +584,7 @@ } /** - * Sorts the list in place. + * Sorts the list in-place. * * \remark The underlying sort algorithm is implementation defined. * diff -r e5909dff0dbf -r 96555c0ed875 ucx/cx/mempool.h --- a/ucx/cx/mempool.h Sun Jul 02 13:23:51 2023 +0200 +++ b/ucx/cx/mempool.h Mon Jul 10 18:40:37 2023 +0200 @@ -100,7 +100,7 @@ } /** - * Destroys a memory pool including their contents. + * Destroys a memory pool and frees the managed memory. * * @param pool the memory pool to destroy */ diff -r e5909dff0dbf -r 96555c0ed875 ucx/linked_list.c --- a/ucx/linked_list.c Sun Jul 02 13:23:51 2023 +0200 +++ b/ucx/linked_list.c Mon Jul 10 18:40:37 2023 +0200 @@ -607,7 +607,7 @@ } #ifndef CX_LINKED_LIST_SWAP_SBO_SIZE -#define CX_LINKED_LIST_SWAP_SBO_SIZE 16 +#define CX_LINKED_LIST_SWAP_SBO_SIZE 128 #endif static int cx_ll_swap( diff -r e5909dff0dbf -r 96555c0ed875 ucx/utils.c --- a/ucx/utils.c Sun Jul 02 13:23:51 2023 +0200 +++ b/ucx/utils.c Mon Jul 10 18:40:37 2023 +0200 @@ -28,8 +28,13 @@ #include "cx/utils.h" +#ifndef CX_STREAM_BCOPY_BUF_SIZE #define CX_STREAM_BCOPY_BUF_SIZE 8192 +#endif + +#ifndef CX_STREAM_COPY_BUF_SIZE #define CX_STREAM_COPY_BUF_SIZE 1024 +#endif size_t cx_stream_bncopy( void *src,