Crates.io | re_string_interner |
lib.rs | re_string_interner |
version | 0.19.1 |
source | src |
created_at | 2023-02-12 15:48:50.101329 |
updated_at | 2024-11-05 10:51:09.373882 |
description | Yet another string interning library |
homepage | https://rerun.io |
repository | https://github.com/rerun-io/rerun |
max_upload_size | |
id | 783275 |
size | 17,068 |
Part of the rerun
family of crates.
String interning is a way to reduce memory use by detecting duplicated string and storing them only once.
The main thing that makes this library different is that
InternedString
stores the hash of the string, which makes
using it in lookups is really fast, especially when using nohash_hasher::IntMap
.
The hash is assumed to be perfect, which means this library accepts the risk of hash collisions!
The interned strings are never freed, so don't intern too many things.