3 ms·
This might actually be slower (you have a lot of strings which have UCS2 characters down the line, have to reallocate array and copy everything over)
by guard-of-terra 11y ago
This might actually be slower (you have a lot of strings which have UCS2 characters down the line, have to reallocate array and copy everything over)
- cesarb 11y agoAren't Java Strings immutable? Once built, they won't be modified.
- guard-of-terra 11y agoYou still need t construct them from e.g. array of bytes.