gecko-dev/third_party/rust/cranelift-bforest
Benjamin Bouvier 94d74e6608 Bug 1573409: Bump Cranelift to b2c69b1d032626c67f685080dbf6971d3b9ffa43; r=lth
Differential Revision: https://phabricator.services.mozilla.com/D41721

--HG--
extra : moz-landing-system : lando
2019-08-13 11:55:37 +00:00
..
src Bug 1559099: Bump Cranelift in Spidermonkey to e455f6ae; r=lth 2019-06-28 15:25:47 +02:00
.cargo-checksum.json Bug 1573409: Bump Cranelift to b2c69b1d032626c67f685080dbf6971d3b9ffa43; r=lth 2019-08-13 11:55:37 +00:00
Cargo.toml Bug 1573409: Bump Cranelift to b2c69b1d032626c67f685080dbf6971d3b9ffa43; r=lth 2019-08-13 11:55:37 +00:00
LICENSE
README.md

README.md

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.