Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 76794 invoked from network); 5 Sep 2006 21:16:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 5 Sep 2006 21:16:09 -0000 Received: (qmail 65286 invoked by uid 500); 5 Sep 2006 21:16:07 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 64953 invoked by uid 500); 5 Sep 2006 21:16:06 -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 64942 invoked by uid 99); 5 Sep 2006 21:16:06 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Sep 2006 14:16:06 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of yseeley@gmail.com designates 64.233.166.180 as permitted sender) Received: from [64.233.166.180] (HELO py-out-1112.google.com) (64.233.166.180) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Sep 2006 14:16:05 -0700 Received: by py-out-1112.google.com with SMTP id w49so2755658pyg for ; Tue, 05 Sep 2006 14:15:42 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=edcUer6xlM1fJoPfqzCDX9W3+Vl6YkP9EU1HBM4KoeL7bx2+KtYj0/c8hnus/ZVNexbuoQWkuqpzpLCa5Mb5JqheYC8623tcCAogLmMkuOa+NSsHmXfnbDwdGrIcn3Dk5XwCywJ99/gs9qP33GX2qZewShTFUJi6OKjCbPNSCaI= Received: by 10.35.51.19 with SMTP id d19mr10869994pyk; Tue, 05 Sep 2006 14:15:42 -0700 (PDT) Received: by 10.35.11.9 with HTTP; Tue, 5 Sep 2006 14:15:42 -0700 (PDT) Message-ID: Date: Tue, 5 Sep 2006 17:15:42 -0400 From: "Yonik Seeley" Sender: yseeley@gmail.com To: java-dev@lucene.apache.org Subject: Re: [jira] Updated: (LUCENE-584) Decouple Filter from BitSet In-Reply-To: <16099236.1157403804350.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <27200586.1149076109798.JavaMail.jira@brutus> <16099236.1157403804350.JavaMail.jira@brutus> X-Google-Sender-Auth: edbba4198de7ea7d X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On 9/4/06, Eks Dev (JIRA) wrote: > Here are some Matcher implementations, > > - OpenBitsMatcher- the same as the code Paul wrote for BitsMatcher, with replaced OpenBitSet instead > > -DenseOpenBitsMatcher - Using solr BitSetIterator (for skipTo() to work, one method in BitSetIterator should become public) Keep in mind that BitSetIterator is fast for iteration over all it's bits. If it's used as a filter (with skipping), I would expect it to be slower. > Also attached one simple test (just basic fuctionality) that also contains one dummy relative performance test > > Perf. test simply iterates over different Matcher implementations and measures ellapsed time (not including Matcher creation, pure forward scan to the end) for different set bit densities. > > imho, this code is not sufficiantly tested nor commented, needs an hour or two. > > As expected, Yonik made this BitSetIterator really fast. What was surprise for me was OpenBitSet nextSetBit() comparing bad to the BitSet (or I made some dummy mistake somewhere?) That's weird... what CPU and in what mode (32 or 64 bit)? What JVM params? Do you get the same results from org.apache.solr.util.BitSetPerf for nextSetBit? I did write it on a P4, and ntz (number of trailing zeros) is currently optimized for a 32 bit CPU where a 64 bit shift may be slightly more expensive. -Yonik --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org