test.javaadvent.com
Changes to String.substring in Java 7 - JVM Advent
It is common knowledge that Java optimizes the substring operation for the case where you generate a lot of substrings of the same source string. It does this by using the (value, offset, count) way of storing the information. See an example below: In the above diagram you see the strings “Hello” and “World!” derived […]
gpanther