Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 84580 invoked from network); 14 Nov 2006 22:34:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Nov 2006 22:34:12 -0000 Received: (qmail 64273 invoked by uid 500); 14 Nov 2006 22:34:11 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 64196 invoked by uid 500); 14 Nov 2006 22:34:10 -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 64182 invoked by uid 99); 14 Nov 2006 22:34:10 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Nov 2006 14:34:10 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Nov 2006 14:33:58 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 451DB7142D7 for ; Tue, 14 Nov 2006 14:33:38 -0800 (PST) Message-ID: <20585770.1163543618280.JavaMail.jira@brutus> Date: Tue, 14 Nov 2006 14:33:38 -0800 (PST) From: "paul constantinides (JIRA)" To: java-dev@lucene.apache.org Subject: [jira] Updated: (LUCENE-711) BooleanWeight should size the weights Vector correctly In-Reply-To: <1938568.1163543497089.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ http://issues.apache.org/jira/browse/LUCENE-711?page=all ] paul constantinides updated LUCENE-711: --------------------------------------- Attachment: vector_sizing.patch Patch to move weights initialization to constructor with the correct sizing. > BooleanWeight should size the weights Vector correctly > ------------------------------------------------------ > > Key: LUCENE-711 > URL: http://issues.apache.org/jira/browse/LUCENE-711 > Project: Lucene - Java > Issue Type: Improvement > Components: Search > Affects Versions: 1.9, 2.0.0, 2.1, 2.0.1 > Reporter: paul constantinides > Priority: Trivial > Attachments: vector_sizing.patch > > > The weights field on BooleanWeight uses a Vector that will always be sized exactly the same as the outer class' clauses Vector, therefore can be sized correctly in the constructor. This is a trivial memory saving enhancement. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org