Expand description
This module holds various helpers for inspecting the internal structure of the B-tree.
Functionsยง
- calculate_
memory_ usage - Calculates the memory usage of the B-tree. Note that it does not inspect keys and values internally. Meaning that if they store pointers internally, the memory they point to is not included.
- get_
height - Returns the height of the B-tree.
- get_
max_ kvp_ count - Returns the maximum number of key-value pairs that a single node can hold. This is an odd number.
- get_
min_ kvp_ count - Returns the minimum number of key-value pairs that a single node can hold. This is typically half of the maximum number of key-value pairs.