News for hackers. Stuff that matters.
Re:Small Strings in Rust: smolstr vs. smartstring by dataflow on Sunday August 25, 2024 @09:44AM (#41347264)
Oof, you're right, thank you. In my mind the last byte was obviously zero for a heap string too, since the pointer or sizes would've had a zero upper byte. Somehow I never accounted for the fact that on 64-bit there's no need to represent it that way. Fantastic point!

There are no comments on this comment yet.