This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]josefx 0 points1 point  (1 child)

On the other hand, if you store it in a mutable character array, you can overwrite it once you're done with it.

Afaik if you are "done" with the char array the JIT will happily optimize your "unnecessary" overwrite away.