4 ms·
> you’re permanently creating the string, so if it isn’t reused later, that means your memory usage needlessly goes up. Nowadays lots of runtime will GC intern
by masklinn 9mo ago
> you’re permanently creating the string, so if it isn’t reused later, that means your memory usage needlessly goes up.
Nowadays lots of runtime will GC interned strings to avoid this, this can mean churn in the interning table but avoids mis-estimations bloating the process too much.