3 ms·
You can make this better by not storing the size at all, even for the long strings: https://rwmj.wordpress.com/2016/01/08/half-baked-ideas-c-strings-with-implic
by rwmj 11y ago
You can make this better by not storing the size at all, even for the long strings: https://rwmj.wordpress.com/2016/01/08/half-baked-ideas-c-strings-with-implicit-length-field/ https://rwmj.wordpress.com/2016/01/08/half-baked-ideas-c-str...
- masklinn 11y agoThat's not a better idea, and it stores the difference between size and capacity which is exactly the trick SSO-23 uses in SSO.