alexcrichton-cranelift-bforest

Crates.ioalexcrichton-cranelift-bforest
lib.rsalexcrichton-cranelift-bforest
version0.53.0
sourcesrc
created_at2020-01-10 21:31:58.485422
updated_at2020-01-10 22:15:35.323368
descriptionA forest of B+-trees
homepage
repositoryhttps://github.com/bytecodealliance/cranelift
max_upload_size
id197317
size135,526
Alex Crichton (alexcrichton)

documentation

https://cranelift.readthedocs.io/

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: 3099

cargo fmt