3 ms·
But that's nothing to do with thread saftey - even with a single thread if the char[] changes then stuff blows up right?
by MichaelGG 11y ago
But that's nothing to do with thread saftey - even with a single thread if the char[] changes then stuff blows up right?
- sgustard 11y agoCorrect, and Java's String(char[]) makes a copy of the array for that reason. This article's benchmark gets a boost by avoiding that.