15 mkdir build |
15 mkdir build |
16 cd build |
16 cd build |
17 cmake .. |
17 cmake .. |
18 cmake --build . |
18 cmake --build . |
19 sudo cmake --install . |
19 sudo cmake --install . |
|
20 |
|
21 When compiling UCX 3, you can tweak the buffer sizes for small-buffer-optimization. |
|
22 You can do this, be pre-defining one or more of the following macros: |
|
23 |
|
24 --------------------------------- --------------------------------------------------------------------- ---------- |
|
25 Macro Description Default |
|
26 --------------------------------- --------------------------------------------------------------------- ---------- |
|
27 CX_ARRAY_SWAP_SBO_SIZE The maximum item size in an array list that uses SBO. 128 |
|
28 |
|
29 CX_LINKED_LIST_SORT_SBO_SIZE The maximum list size that uses SBO during sort. 1024 |
|
30 |
|
31 CX_LINKED_LIST_SWAP_SBO_SIZE The maximum item size that uses SBO swap instead of relinking. 128 |
|
32 |
|
33 CX_PRINTF_SBO_SIZE The maximum string length printf.h uses stack memory for. 512 |
|
34 |
|
35 CX_STRSTR_SBO_SIZE The maximum length of the "needle" in strstr that can use SBO. 512 |
|
36 --------------------------------- --------------------------------------------------------------------- ---------- |
|
37 |
|
38 You can also tweak some other buffer sizes with the same technique: |
|
39 |
|
40 --------------------------------- --------------------------------------------------- ---------- |
|
41 Macro Description Default |
|
42 --------------------------------- --------------------------------------------------- ---------- |
|
43 CX_STRREPLACE_INDEX_BUFFER_SIZE The number of matches one index buffer can store. 64 |
|
44 |
|
45 CX_STREAM_COPY_BUF_SIZE The buffer size on the stack for a stream copy. 1024 |
|
46 |
|
47 CX_STREAM_BCOPY_BUF_SIZE The buffer size on the heap for a stream copy. 8192 |
|
48 --------------------------------- --------------------------------------------------- ---------- |
20 |
49 |
21 --- |
50 --- |
22 |
51 |
23 ### UCX 2.1 |
52 ### UCX 2.1 |
24 |
53 |