Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 80630 invoked from network); 19 Apr 2009 19:43:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 19 Apr 2009 19:43:18 -0000 Received: (qmail 62815 invoked by uid 500); 19 Apr 2009 19:43:17 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 62723 invoked by uid 500); 19 Apr 2009 19:43:17 -0000 Mailing-List: contact java-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-dev@lucene.apache.org Received: (qmail 62713 invoked by uid 99); 19 Apr 2009 19:43:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 19 Apr 2009 19:43:17 +0000 X-ASF-Spam-Status: No, hits=1.6 required=10.0 tests=RCVD_IN_DNSWL_LOW,RCVD_NUMERIC_HELO,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jak-lucene-dev@m.gmane.org designates 80.91.229.2 as permitted sender) Received: from [80.91.229.2] (HELO ciao.gmane.org) (80.91.229.2) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 19 Apr 2009 19:43:07 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Lvcu9-0005kG-7a for java-dev@lucene.apache.org; Sun, 19 Apr 2009 19:42:47 +0000 Received: from 193.130.178.31 ([193.130.178.31]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 19 Apr 2009 19:42:17 +0000 Received: from chris.miller by 193.130.178.31 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 19 Apr 2009 19:42:17 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: java-dev@lucene.apache.org From: Chris Miller Subject: Re: [jira] Commented: (LUCENE-1607) String.intern() faster alternative Date: Sun, 19 Apr 2009 19:42:06 +0000 (UTC) Lines: 11 Message-ID: References: <59b3eb370904191228x2363cef9x5db1a95807380d4@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 193.130.178.31 X-Newsreader: JetBrains Omea Reader 1098.1 Sender: news X-Virus-Checked: Checked by ClamAV on apache.org > As soon as all possible fields are in the pool, we're essentially > readonly. The problem is, there's no guarantee we will ever reach this point. For example suppose you have a server app that spawns a new thread per request. Each new thread might have to make all the .intern() calls again because they never see anything in the cache. Having said that, I agree that the code will still work correctly regardless, and this is a very unlikely scenario anyway - for most practical situations this is never going to be an issue. --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org