KV leaf node memory optimization
Optimization to store leaf nodes as single node with multi-byte suffix instead of a set of single-byte nodes to optimize both memory consumption (about 50x less memory used for long keys) as well as CPU usage reduction due to less iterations needed to reach terminal node.
For example before optimization keys "apple" and "approve" were stored this way (one node per character):
a - p - p - l - e
|
r - o - v - e
After "tail aggregation" the suffix parts of both keys can be aggregated in the single node:
a - p - p - le
|
rove