pub const BRANCHING_FACTOR: usize = raw::BRANCHING_FACTOR; // 2usize
Expand description
Branching factor of the file tree.
This sets how many files are in each level. When a level gets full,
the BRANCHING_FACTOR
files in that level are compacted to a single
file in the upper level.
For most use cases, the default of 2
is likely to be the best choice. Higher values might
help making writes faster thanks to having to compact less, but will make reads
slower. This is unlikely to be a good tradeoff if reads are more common, since in
practice reads are already likely slower.
Do not change this from the default of 2
unless you have donen benchmarks and
are sure the non-default setting is better for your use case.
Supported values: 2 or higher.
Default: 2.