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§

Structs§

Enums§

Constants§

Functions§

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. So 1 << ROOT_LEVEL is the size of the range of each children of the root.