Y
Hacker News
new
|
ask
|
show
|
jobs
by
MichaelGG
3995 days ago
But that's nothing to do with thread saftey - even with a single thread if the char[] changes then stuff blows up right?
1 comments
sgustard
3995 days ago
Correct, and Java's String(char[]) makes a copy of the array for that reason. This article's benchmark gets a boost by avoiding that.
link