#interner #intern #string #str #symbol

string-interner

Efficient string interner with minimal memory footprint and fast access to the underlying strings

19 releases (9 breaking)

new 0.12.2 Jan 11, 2021
0.12.1 Nov 14, 2020
0.12.0 Jul 15, 2020
0.7.1 Sep 1, 2019
0.3.3 Feb 27, 2017

#48 in Data structures

Download history 1546/week @ 2020-09-27 1454/week @ 2020-10-04 1240/week @ 2020-10-11 1636/week @ 2020-10-18 1715/week @ 2020-10-25 1316/week @ 2020-11-01 1474/week @ 2020-11-08 1874/week @ 2020-11-15 1132/week @ 2020-11-22 1605/week @ 2020-11-29 2492/week @ 2020-12-06 1897/week @ 2020-12-13 696/week @ 2020-12-20 518/week @ 2020-12-27 1535/week @ 2021-01-03 1499/week @ 2021-01-10

6,322 downloads per month
Used in 39 crates (11 directly)

MIT/Apache

54KB
1.5K SLoC

String Interner

Continuous Integration Test Coverage Documentation Crates.io
travisCI codecov docs crates

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.

License

Licensed under either of

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 above, without any additional terms or conditions.

Dependencies

~505KB