im/config.rs
1// This Source Code Form is subject to the terms of the Mozilla Public
2// License, v. 2.0. If a copy of the MPL was not distributed with this
3// file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
5use typenum::*;
6
7/// The branching factor of RRB-trees
8pub(crate) type VectorChunkSize = U64;
9
10/// The branching factor of B-trees
11pub(crate) type OrdChunkSize = U64; // Must be an even number!
12
13/// The level size of HAMTs, in bits
14/// Branching factor is 2 ^ HashLevelSize.
15pub(crate) type HashLevelSize = U5;
16
17/// The size of per-instance memory pools if the `pool` feature is enabled.
18/// This is set to 0, meaning you have to opt in to using a pool by constructing
19/// with eg. `Vector::with_pool(pool)` even if the `pool` feature is enabled.
20pub(crate) const POOL_SIZE: usize = 0;