3 ms·
Just as a note, on Java 7, developers opted for not having a single buffer backing multiple strings due to the backing references never been deleted. [1] [2] [
by Nican 12y ago
Just as a note, on Java 7, developers opted for not having a single buffer backing multiple strings due to the backing references never been deleted. [1] [2]
[1] http://stackoverflow.com/questions/16123446/java-7-string-substring-complexity http://stackoverflow.com/questions/16123446/java-7-string-su...
[2] http://www.reddit.com/r/programming/comments/1qw73v/til_oracle_changed_the_internal_string/ http://www.reddit.com/r/programming/comments/1qw73v/til_orac...
- nikbackm 12y agoProbably more of an issue when all of your strings work(ed) like that, as opposed to here where you must explicitly opt-in to use immutable strings with shared buffers.