This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: string hash performance


On Mon, 19 Aug 2002, Bryce McKinlay wrote:
> >I did some benchmarking with the cachedHashCode bits of your patch.
> >Interestingly, it helped considerably on my interpreter benchmarks,
> >chopping about 15% off total run time.
> >
>
> Thanks for benchmarking this. It looks like this is a clear win to me.
> Given that its also what the JDK appears to do, I think we should go
> ahead and change String to cache the hashCode.

Or just approve Eric's merge patch.  It probably needs updating though.

Jeff


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]