This is the mail archive of the java-patches@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: FYI: Patch: java.util.Locale


On Mon, 2004-03-15 at 11:13, Tom Tromey wrote:
> The code in Locale uses `==' for performance.  I think way back
> Anthony had some data supporting this.  He patched Locale to intern()
> its strings, making the optimization valid.

Yes, Locale comparisons happen in our library with suprising frequency.

> So, I suspect we should revert this patch and instead add comments at
> the affected places indicating why this is ok.  Anthony, do you have
> anything to add here?

No, that makes sense.  I'll propose a comment patch later unless
somebody beats me to it.

AG

-- 
Anthony Green <green@redhat.com>
Red Hat, Inc.


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