RFR: 8015522 - CharSequence.codePoints can be faster

Alan Bateman Alan.Bateman at oracle.com
Tue Jun 4 02:19:04 PDT 2013


On 03/06/2013 21:33, Henry Jen wrote:
> Hi,
>
> Please review
> http://cr.openjdk.java.net/~henryjen/tl/8015522.0/webrev/
>
> This webrev is based on previous suggestion from Martin Buchholz while
> keep the lazy-binding nature without seize the length at construction time.
>
> The benchmark shows ~50% performance increase, mainly from reduce of
> operation, for example, inline block.accept instead of store the
> character to a local var also helps.
>
> Cheers,
> Henry
Looks good to me too.

-Alan.


More information about the lambda-dev mailing list