Skip to content

A string interner that is safe to use from multiple threads

License

Notifications You must be signed in to change notification settings

typesanitizer/concurrent-interner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

concurrent-interner: Conveniently interning strings from multiple threads

Build status crates.io docs.rs Rust

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 takes a very long time to run (30~45 min on an M1 Macbook Pro), 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.

About

A string interner that is safe to use from multiple threads

Resources

License

Stars

Watchers

Forks

Packages

No packages published