From java-dev-return-30615-apmail-lucene-java-dev-archive=lucene.apache.org@lucene.apache.org Tue Feb 03 19:39:07 2009 Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 6398 invoked from network); 3 Feb 2009 19:39:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Feb 2009 19:39:07 -0000 Received: (qmail 27061 invoked by uid 500); 3 Feb 2009 19:39:03 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 27032 invoked by uid 500); 3 Feb 2009 19:39:03 -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 27010 invoked by uid 99); 3 Feb 2009 19:39:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Feb 2009 11:39:03 -0800 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [74.125.44.30] (HELO yx-out-2324.google.com) (74.125.44.30) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Feb 2009 19:38:54 +0000 Received: by yx-out-2324.google.com with SMTP id 3so694041yxj.5 for ; Tue, 03 Feb 2009 11:38:33 -0800 (PST) Received: by 10.90.74.7 with SMTP id w7mr3695619aga.86.1233689913585; Tue, 03 Feb 2009 11:38:33 -0800 (PST) Received: from ?10.17.4.4? (pool-173-48-164-75.bstnma.fios.verizon.net [173.48.164.75]) by mx.google.com with ESMTPS id 7sm10210766agd.39.2009.02.03.11.38.32 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 03 Feb 2009 11:38:32 -0800 (PST) Message-Id: <6CF558BC-89A0-4459-A514-89A2EFC26130@mikemccandless.com> From: Michael McCandless To: java-dev@lucene.apache.org In-Reply-To: <85d3c3b60902031058jbeb61ebj9b12c2ec0c223784@mail.gmail.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Subject: Re: BitVector.get bounds checking Date: Tue, 3 Feb 2009 14:38:32 -0500 References: <85d3c3b60902031058jbeb61ebj9b12c2ec0c223784@mail.gmail.com> X-Mailer: Apple Mail (2.930.3) X-Virus-Checked: Checked by ClamAV on apache.org I think that makes sense. I'll wait a day or so and then commit it if there are no objections. Mike Jason Rutherglen wrote: > A simple way to make BitVector faster would be to turn the get method > bounds checking into an assertion. This is similar to > OpenBitSet.fastGet. --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org