Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Eric Sosman Newsgroups: comp.lang.java.programmer Subject: Re: optimsed HashMap Date: Tue, 27 Nov 2012 08:44:14 -0500 Organization: A noiseless patient Spider Lines: 17 Message-ID: References: <8i70b8d0pm6ibk03ti4t2pv60jd0bctlcs@4ax.com> <8ip0b8p7blu31eub502so8cus1h9so3m9s@4ax.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Tue, 27 Nov 2012 13:44:21 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="ffb8f7085759b339c1002252b48331a4"; logging-data="30144"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1998dYDe386xP4ORAmlrxzq" User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/17.0 Thunderbird/17.0 In-Reply-To: Cancel-Lock: sha1:iGCQ8/IAL5NGx3rZyn/+vB9PBrw= Xref: csiph.com comp.lang.java.programmer:19995 On 11/26/2012 9:35 PM, Daniele Futtorovic wrote: > > Hm. According to Roedy himself > (), the JVM > uses a HashMap for intern()'d string lookup. So there may be no point in > doing it after all. Here is the implementation of intern(), quoted in its entirety from the Java 1.7 source: public native String intern(); Draw your own conclusions about its use of HashMap. -- Eric Sosman esosman@comcast-dot-net.invalid