Crates.io | string-interner |
lib.rs | string-interner |
version | 0.18.0 |
source | src |
created_at | 2017-02-06 00:10:54.307279 |
updated_at | 2024-11-12 22:57:02.153495 |
description | Efficient string interner with minimal memory footprint and fast access to the underlying strings. |
homepage | |
repository | https://github.com/robbepop/string-interner |
max_upload_size | |
id | 8406 |
size | 117,725 |
Continuous Integration | Test Coverage | Documentation | Crates.io |
---|---|---|---|
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.
Test the project using
cargo test --release
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
--features test-allocations
enables the memory allocations tests.--test-thread 1
argument is required for the memory allocations tests
since otherwise they interfere with each other causing them to randomly fail.--nocapture
to receive verbose output useful for debugging.Benchmark the string interner and its various backends using
cargo bench
Licensed under either of
at your option.
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.