Closed rockeet closed 5 years ago
Value in RocksDB MemTable must be prefix len encoded, so keylen
field is not needed! Tree Node
should be:
#pragma pack(push,1)
struct Node {
uint32_t left : 31;
uint32_t color : 1; // red or black
uint64_t right : 31;
uint64_t offset : 33; // offset to KeyValue data in mempool
};
#pragma pack(pop)
realloc
'edkeylen = offset[i+1] - offset[i] - valuelen
231 - 2
done
This memory pool is aimed to showing advantages of our MemTable refactory:
Using array based Threaded Red-Black Tree:
232 - 2
224-1