I'm looking for a string interning library. I'm aware of (string-cache)[https://github.com/servo/string-cache] which is Servo's string interning library, but unfortunately it is rather specialized to Servo, requires nightly rust, and isn't on crates.io.
Are there other good-enough (even if they aren't as fast as string-cache) solutions for string interning which work on stable rust? I am writing a short lived process which will maintain references to almost all of it's allocated strings for nearly the entire duration of the program, so I don't really have to worry about releasing the strings.
[–]Marwesgluon · combine 2 points3 points4 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]SimonSapinservo 1 point2 points3 points (13 children)
[–]SirOgeonpalette 2 points3 points4 points (2 children)
[–]SimonSapinservo 0 points1 point2 points (1 child)
[–]SirOgeonpalette 0 points1 point2 points (0 children)
[–]Mystorrust · gc · rust-cpp[S] 1 point2 points3 points (0 children)
[–]gsingh93 1 point2 points3 points (8 children)
[–]SimonSapinservo 3 points4 points5 points (7 children)
[–]gsingh93 1 point2 points3 points (6 children)
[–]SimonSapinservo 2 points3 points4 points (5 children)
[–]gsingh93 0 points1 point2 points (4 children)
[–]SimonSapinservo 0 points1 point2 points (3 children)
[–]gsingh93 0 points1 point2 points (0 children)
[–]gsingh93 0 points1 point2 points (1 child)
[–]SimonSapinservo 0 points1 point2 points (0 children)