RFR: JDK-8032012, , String.toLowerCase/toUpperCase performance improvement

Ulf Zibis Ulf.Zibis at CoSoCo.de
Wed Feb 5 23:28:39 UTC 2014


Additionally you could use Character.isSurrogate() and Character.isSupplementaryCode<point() at 
appropriate places. Both are better optimized for JIT.

-Ulf


Am 05.02.2014 22:30, schrieb Xueming Shen:
> Hi Remi,
>
> Good suggestion. Now the "common case" path is much simple and faster :-)
> I'm seeing a 5%-10% boost for the normal-non-surrogates case. And it appears
> the bmp+surr mixed is getting faster as well. Though I would assume the it
> would get slower in case of "no-case-folding" + surrogates. But the common
> case wins here.
>
> http://cr.openjdk.java.net/~sherman/8032012/webrev/




More information about the core-libs-dev mailing list