Chromium: Substring of string retains string in memory

by taloson 11/1/2025, 4:29 AMwith 3 comments

by magicalhippoon 11/1/2025, 6:27 AM

This seems like the string version of --ffast-math. Optimize performance at the cost of everything else[1]. Except with --fast-math you explicitly turn it on.

I assume the underlying storage isn't reference counted, because if it was it seems it would be trivial to detect there's only a single reference left, and trigger a reallocation.

[1]: https://gcc.gnu.org/wiki/FloatingPointMath

by taloson 11/1/2025, 4:29 AM

Twelve years and running!