8058779: Faster implementation of String.replace(CharSequence, CharSequence)

Ivan Gerasimov ivan.gerasimov at oracle.com
Tue May 26 16:36:06 UTC 2015


Thank you Mark for looking at this!

On 26.05.2015 18:39, mark.reinhold at oracle.com wrote:
> Your micro-benchmark improvements are significant, but do you have
> evidence to suggest that the performance of this method is actually
> critical to real applications?
>
> In other words, is the added code complexity really worth it?

The enhancement request contains a few links to the discussions of this 
method's performance at open forums.
The most frequent suggestion is to use alternatives from 3rd party 
libraries.

That should prove the benefits of this fix -- by improving performance 
we can keep some users from moving away from JDK :)

grep shows that langtools would also benefit from making replace() faster.

Sincerely yours,
Ivan

> - Mark
>
>




More information about the core-libs-dev mailing list