String.lastIndexOf confused by unpaired trailing surrogate

Martin Buchholz martinrb at google.com
Mon Mar 22 20:08:31 UTC 2010


On Mon, Mar 22, 2010 at 07:45, Ulf Zibis <Ulf.Zibis at gmx.de> wrote:
> Am 21.03.2010 18:38, schrieb Martin Buchholz:

>> Even if I'm wrong, and this cold code is actually hot,
>> I don't think there will be a big performance loss.
>> The method call is outside the loop.
>>
>
> What about at least reusing the cached values from calling method via
> indexOfSupplementary(ch, fromIndex, value, offset, max - 1) ?

No.  We're optimizing for BMP.

Martin



More information about the core-libs-dev mailing list