8058779: Faster implementation of String.replace(CharSequence, CharSequence)
ivan.gerasimov at oracle.com
Sun May 31 02:19:31 UTC 2015
Here's another webrev, in which replace() is implemented with StringBuilder.
On my benchmark it is almost as fast as the version backed with arrays,
but this variant is much shorter.
Credits to Sherman for combining the general algorithm with the case of
Comments, further suggestions are welcome!
More information about the core-libs-dev