Module re_int_histogram::tree
source ยท Expand description
The histogram is implemented as a trie.
Each node in the trie stores a count of a key/address sharing a prefix up to depth * LEVEL_STEP
bits.
The key/address is always 64 bits.
There are branch nodes, and two types of leaf nodes: dense, and sparse. Dense leaves are only found at the very bottom of the trie.
Modulesยง
- large_and_fast ๐
- small_and_slow ๐
Structsยง
- BranchNode ๐
- DenseLeaf ๐
- An iterator over an
Int64Histogram
. - NodeIterator ๐
- SparseLeaf ๐
- TreeIterator ๐
Enumsยง
- Node ๐
Constantsยง
- ADDR_MASK ๐
- MAX_SPARSE_LEAF_LEN ๐When a
SparseLeaf
goes over this, it becomes aBranchNode
. - NUM_CHILDREN_IN_NODE ๐
- NUM_NODE_STEPS ๐
- ROOT_LEVEL ๐
Functionsยง
- child_level_and_size ๐
Type Aliasesยง
- Level ๐How high up in the tree we are (where root is highest).
1 << level
is the size of the range the next child. So1 << ROOT_LEVEL
is the size of the range of each children of the root.