Debian Codegraph @

/

debian rust-string-interner 0.19.0+ds1-2debian librust-string-interner-dev debian librust-string-interner+backends-dev debian librust-string-interner+default-dev debian librust-string-interner+inline-more-dev debian librust-string-interner+serde-dev debian librust-string-interner+std-dev debian librust-string-interner-0-dev debian librust-string-interner-0+backends-dev debian librust-string-interner-0+default-dev debian librust-string-interner-0+inline-more-dev debian librust-string-interner-0+serde-dev debian librust-string-interner-0+std-dev debian librust-string-interner-0.19-dev debian librust-string-interner-0.19+backends-dev debian librust-string-interner-0.19+default-dev debian librust-string-interner-0.19+inline-more-dev debian librust-string-interner-0.19+serde-dev debian librust-string-interner-0.19+std-dev debian librust-string-interner-0.19.0-dev
5 more… debian librust-string-interner-0.19.0+backends-dev debian librust-string-interner-0.19.0+default-dev debian librust-string-interner-0.19.0+inline-more-dev debian librust-string-interner-0.19.0+serde-dev debian librust-string-interner-0.19.0+std-dev
debianjsonmakefilemarkdownrustshelltomlyaml 34 files · 114 symbols
View dependency graph

Depends on

  • dh-cargo (dh-sequence-cargo)
  • rust-hashbrown (librust-hashbrown-0.16+default-hasher-dev, librust-hashbrown-0.16+inline-more-dev, librust-hashbrown-0.16+raw-entry-dev)
  • cargo, debhelper-compat, librust-serde-1+alloc-dev, librust-serde-1+std-dev, libstd-rust-dev, rustc
README (full)

String Interner

Continuous IntegrationTest CoverageDocumentationCrates.io
travisCIcodecovdocscrates

A data structure to cache strings efficiently, with minimal memory footprint and the ability to assicate the interned strings with unique symbols. These symbols allow for constant time comparisons and look-ups to the underlying interned string contents. Also, iterating through the interned strings is cache efficient.

Contributing

Testing

Test the project using

cargo test --release

Memory Allocation Tests

To further test memory consumption and allocations performed by the different string interner backends test the project as follows:

cargo test --release --features test-allocations -- --test-threads 1
  • The --features test-allocations enables the memory allocations tests.
  • The --test-thread 1 argument is required for the memory allocations tests since otherwise they interfere with each other causing them to randomly fail.
  • Use --nocapture to receive verbose output useful for debugging.

Profiling & Benchmarks

Benchmark the string interner and its various backends using

cargo bench

License

Licensed under either of

  • Apache license, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
  • MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)

at your option.

Dual licence: badge badge

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as below, without any additional terms or conditions.

dir .github/
dir debian/
dir src/
dir tests/
file .cargo_vcs_info.json
file .gitignore
file .rustfmt.toml
file Cargo.lock
file Cargo.toml
file Cargo.toml.orig
file LICENSE-APACHE
file LICENSE-MIT
file README.md
file RELEASE_NOTES.md