3 ms·
Does it matter with copy-on-write?
by hnriot 13y ago
Does it matter with copy-on-write?
- dietrichepp 13y agoWhat? Java's strings are immutable, so copy-on-write is nonsense. Performance tuning for mutable string types has been moving away from the copy-on-write paradigm (it used to be common in C++, but not any more). It's a big mess because the design of the C++ string class was truly botched, it's much less of a mess in other languages where you have different types for mutable and immutable strings (Java, C#, Python, etc.)