Re:Small Strings in Rust: smolstr vs. smartstring
by hvenev on Sunday August 25, 2024 @03:43AM
(#41345288)
Is 26 characters next? I think the number of bytestrings of length <= 26 that are also valid UTF-8 is only 0.021 * 256^24.
[ Parent
| on HN ]
Re:Small Strings in Rust: smolstr vs. smartstring
by returningfory2 on Sunday August 25, 2024 @05:35AM
(#41345912)
I think the problem you encounter with this is that you can no longer reference the small string as a &str.