Cesium
Cesium copied to clipboard
String literal storage optimization
trafficstars
When storing two literals, "bar" and "foobar", the compiler may optimize them to save space in the binary: only store "foobar" and point "bar" pointer to the middle of the literal.
f o o b a r \0
↑ ↑
| "bar" points here
"foobar" points here
Thanks to @a1batross for this suggestion.