Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
-
None
Description
In the current implementation of pipeline sort, when a new sort span object is created with a hard coded value of 1M items and 16 bytes per item.
According to the present code logic,
int metasize = METASIZE*maxItems;
int dataSize = maxItems * perItem;
if(capacity < (metasize+dataSize))
if capacity is less than 32mb, the buffer will be halved into meta and value buffers, which is not efficient.
We need a more generic split, based on the KV pair size written to the buffer.