cranelift-bforest

Crates.iocranelift-bforest
lib.rscranelift-bforest
version0.112.3
sourcesrc
created_at2018-08-14 19:55:48.797407
updated_at2024-11-05 19:22:06.841158
descriptionA forest of B+-trees
homepage
repositoryhttps://github.com/bytecodealliance/wasmtime
max_upload_size
id79459
size134,641
wasmtime-publish (github:bytecodealliance:wasmtime-publish)

documentation

https://docs.rs/cranelift-bforest

README

This crate contains array-based data structures used by the core Cranelift code generator which represent a set of small ordered sets or maps.

These are not general purpose data structures that are somehow magically faster that the standard library's BTreeSet and BTreeMap types.

The tradeoffs are different:

  • Keys and values are expected to be small and copyable. We optimize for 32-bit types.
  • A comparator object is used to compare keys, allowing smaller "context free" keys.
  • Empty trees have a very small 32-bit footprint.
  • All the trees in a forest can be cleared in constant time.
Commit count: 13801

cargo fmt