lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley (JIRA)" <j...@apache.org>
Subject [jira] Commented: (LUCENE-1345) Allow Filter as clause to BooleanQuery
Date Wed, 30 Jul 2008 21:25:31 GMT

    [ https://issues.apache.org/jira/browse/LUCENE-1345?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12618513#action_12618513
] 

Yonik Seeley commented on LUCENE-1345:
--------------------------------------

Eks, I just tried your first TestIteratorPerf.java myself, and comparison with zero was faster
(as expected) by about 8%
I commented everything out except for testNew for simplicity.

Original testNew:
{code}
$ java -server -cp . TestIteratorPerf
new  milliseconds=2883
new  milliseconds=3289
new  milliseconds=3148
new  milliseconds=3195
new  milliseconds=3149
new  milliseconds=3179
new  milliseconds=3180
new  milliseconds=3164
new  milliseconds=3179
new  milliseconds=3164
new total milliseconds=31530
{code}

Modified testNew:
      // while(-1!=(doc=it.next())){
      while((doc=it.next()) >= 0) 

{code}
$ java -server -cp . TestIteratorPerf
new  milliseconds=2806
new  milliseconds=2899
new  milliseconds=2915
new  milliseconds=2899
new  milliseconds=2914
new  milliseconds=2899
new  milliseconds=2899
new  milliseconds=3040
new  milliseconds=2899
new  milliseconds=2930
new total milliseconds=29100
{code}

System: WinXP, Pentium4, java version "1.5.0_11"

> Allow Filter as clause to BooleanQuery
> --------------------------------------
>
>                 Key: LUCENE-1345
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1345
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Search
>            Reporter: Paul Elschot
>            Priority: Minor
>         Attachments: DisjunctionDISI.java, DisjunctionDISI.patch, DisjunctionDISI.patch,
LUCENE-1345.patch, LUCENE-1345.patch, OpenBitSetIteratorExperiment.java, TestIteratorPerf.java,
TestIteratorPerf.java
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message