Need reviewer for forward port of 6815768 (File.getXXXSpace) and 6815768 (String.hashCode)
Alan Bateman
Alan.Bateman at Sun.COM
Fri Feb 26 12:58:11 UTC 2010
Jason Mehrens wrote:
> Alan,
>
> Shouldn't the loading of 'this.count' into 'len' be only performed if
> 'h' is zero? Otherwise, when hash is not zero we perform a little
> unnecessary work every time hashCode is called.
>
> Jason
That's a good suggestion although it might be hard to measure any
difference.
-Alan.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/core-libs-dev/attachments/20100226/e1d0483d/attachment.html>
More information about the core-libs-dev
mailing list