Re:Small Strings in Rust: smolstr vs. smartstring
by nextaccountic on Sunday August 25, 2024 @12:10PM
(#41348406)
This is perfect, thanks!
... well except it stores up to 15 bytes inline rather than using the UTF-8 trick to cram an extra byte. (But maybe it can't; or at least, ByteYarn really can only store 15 bytes, even though Yarn could store 16 bytes maybe, but this would pose problems when converting between those types because I suppose this conversion is zero cost)
https://mcyoung.xyz/2023/08/09/yarns/