#interning #string-interning #thread #multiple #benchmark #workload

concurrent-interner

A string interner usable from multiple threads

1 unstable release

0.1.0 Jul 3, 2022

#37 in #workload

MPL-2.0 license

52KB
891 lines

concurrent-interner: Conveniently interning strings from multiple threads

Request for help: I am looking for someone experienced with unsafe Rust to audit the unsafe code. It is MIRI clean as far as I can tell, but MIRI take a very long time to run, making it unsuitable for CI.

This crate provides an string interner which is safe to use from multiple threads. You can think of it as the mash up of a concurrent hash map and a single-threaded interner.

Documentation:

  • See Contributing before filing issues or submitting a PR.
  • See Design for the overall goals and the code works at a high-level. Hopefully, it helps you decide when you should (not) use this crate. Or you can directly read the source code.
  • See Performance to see how you can run the accompanying benchmarks, as well as results for some workloads.

lib.rs:

For high-level documentation, see the Readme.

Dependencies

~220KB