cosort_r()
Speed up sorting / merge functions in your programs
Integrated sorting and merging operations
The traditional IRI CoSort API is now thread-safe and documented as cosort_r(). You can call cosort_r() to accelerate operations that sort or merge large amounts of data. Because your programs configure the input, comparison, and output processes within the CoSort Engine, you can also apply your own selection and comparison criteria.
The ‚r‘ in cosort_r() refers to the reentrant nature of the call, meaning you can call the function recursively from multiple processes. This allows you to specify multiple sort orders for the same input and in the same pass. The flexible architecture also allows you to manage multiple sort jobs within a single process and across any number of processes.