Re:Microfeatures I'd like to see in more languages
by masklinn on Thursday January 05, 2023 @05:09PM
(#34267561)
> A long-running program which generates new interned strings on the fly risks exhausting this pool or system memory.
So does a long-running program which generates new symbols on the fly.
The problem with string interning, especially for strings constructed at runtime, is that for the interning pool to be efficient it is very desirable for it to be append-only, and non-relocatable. A long-running program which generates new interned strings on the fly risks exhausting this pool or system memory.