Rust struct that stores tiny strings in the pointer itself (github.com) 4 points by brundolf 5y ago ↗ HN
[–] shoefindortz 5y ago ↗ Neat!This is commonly known as Small String / Small Buffer Optimization. This is how most implementations of C++'s std::string work also.
1 comment
[ 0.31 ms ] story [ 10.3 ms ] threadThis is commonly known as Small String / Small Buffer Optimization. This is how most implementations of C++'s std::string work also.