This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: string hash performance
- From: Jeff Sturm <jsturm at one-point dot com>
- To: Bryce McKinlay <bryce at waitaki dot otago dot ac dot nz>
- Cc: Eric Blake <ebb9 at email dot byu dot edu>, <java at gcc dot gnu dot org>
- Date: Mon, 19 Aug 2002 12:46:06 -0400 (EDT)
- Subject: 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