RFR 8222806: Inefficient String.replace in PathFileObject.toBinaryName

Jonathan Gibbons jonathan.gibbons at oracle.com
Mon Apr 22 17:51:16 UTC 2019


That seems like micro-optimization.  Do you have numbers to back it up?

Should this sort of optimization be done in String.replace?

-- Jon

On 4/22/19 8:51 AM, Ron Shapiro wrote:
> Hi,
>
> Please review this small change to improve the performance of 
> PathFileObject.toBinaryName:
>
> webrev: http://cr.openjdk.java.net/~ronsh/8222806/webrev.00/
> bug: https://bugs.openjdk.java.net/browse/JDK-8222806
>
> Thanks!
> Ron
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/compiler-dev/attachments/20190422/d02f4f77/attachment.html>


More information about the compiler-dev mailing list