update ucx

Mon, 10 Jul 2023 18:40:37 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Mon, 10 Jul 2023 18:40:37 +0200
changeset 776
96555c0ed875
parent 775
e5909dff0dbf
child 777
15006651a5d1

update ucx

ucx/array_list.c file | annotate | diff | comparison | revisions
ucx/cx/hash_map.h file | annotate | diff | comparison | revisions
ucx/cx/iterator.h file | annotate | diff | comparison | revisions
ucx/cx/list.h file | annotate | diff | comparison | revisions
ucx/cx/mempool.h file | annotate | diff | comparison | revisions
ucx/linked_list.c file | annotate | diff | comparison | revisions
ucx/utils.c file | annotate | diff | comparison | revisions
--- 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(
--- 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
--- 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
  */
--- 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.
  *
--- 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
  */
--- 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(
--- 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,

mercurial