internment icon indicating copy to clipboard operation
internment copied to clipboard

Interning of data in rust

Results 12 internment issues
Sort by recently updated
recently updated
newest added

I noticed some typos in the docs for the Arena type and thought I'd submit a PR as a small thank you for making such an easy to use interning...

Hello 👋 ! Just a small PR to add https://rkyv.org/ integration behind the `rkyv` feature!

So there's smaller lock contention. This also unlocks an option to do partitioning by hash, which should reduce contention greatly.

I was unable to use the macro for trait impls since it does not support lifetimes.

I don't want to intern strings that are typos of things that are. Is there a way to check if a value is already interned?

As the title says, otherwise the memory might keep growing forever. The following code can be used: ``` /// Shrinks underlying container's memory to only fit the currently contained items...

* Returns true if value already interned. * Added simple test as well.

just to run CI

This is useful in order to allow looking for interned str without having to create owned value first. simple benchmarks show nice improvement in case the str was already interned:...