News for hackers. Stuff that matters.
Re:Rust struct that stores tiny strings in the pointer itself by shoefindortz on Tuesday May 25, 2021 @04:18PM (#27282039)
Neat!

This is commonly known as Small String / Small Buffer Optimization. This is how most implementations of C++'s std::string work also.

There are no comments on this comment yet.