String.lastIndexOf confused by unpaired trailing surrogate

Martin Buchholz martinrb at google.com
Sun Mar 21 08:05:52 UTC 2010


On Sat, Mar 20, 2010 at 15:50, Ulf Zibis <Ulf.Zibis at gmx.de> wrote:
> Oops, later I looked in your webrev and saw your same idea at same time
> while I was composing my before-last email.
>
> Why don't you outsource indexOfBMP, lastIndexOfBMP, or to be sincere IMO to
> much source code + byte code overhead for a only once used 3-liner.

I'm not sure I understand your intent.

> I suspect if all the finals will have any benefit. Some time ago I too felt
> in that trap, or am I wrong. Examine the disassambly.

My use of "final" is almost always for software engineering reasons,
not for performance reasons.

Martin



More information about the core-libs-dev mailing list