In many places of this project, there's heavy use of the [BTreeMap](https://doc.rust-lang.org/std/collections/struct.BTreeMap.html) from rust collection. The [scapegoat crate](https://crates.io/crates/scapegoat) could help with performance by using stack allocated array for small maps. The API of the crates looks very similar to [BTreeMap](https://doc.rust-lang.org/std/collections/struct.BTreeMap.html)'s one, it shouldn't be too difficult to make the switch.
In many places of this project, there's heavy use of the BTreeMap from rust collection.
The scapegoat crate could help with performance by using stack allocated array for small maps.
The API of the crates looks very similar to BTreeMap's one, it shouldn't be too difficult to make the switch.