than we conclude, comparison with 0 is faster :) Maybe something on my XP machine was doing something in background I have not noticed, stealing cycles, on Windows this can not be easily controlled. or when I tested it the other day, I used comparison with -1 while((doc=it.next()) >-1)
could that make any difference? looks like! I just read mails here. Wow, I can dump asm now, easily! this is fun... I will have to dig out my old x86 references, must admit, very very rusty on CPU development in past years (10+ )... I used to be cool a long, long time ago :) Only good news today, I learned something from you, I can dump asm from hotspot, we have Fieldable "solved", ... great, I can go to sleep now :) ----- Original Message ---- > From: Yonik Seeley (JIRA) <[EMAIL PROTECTED]> > To: java-dev@lucene.apache.org > Sent: Wednesday, 30 July, 2008 11:25:31 PM > Subject: [jira] Commented: (LUCENE-1345) Allow Filter as clause to > BooleanQuery > > > [ > 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] __________________________________________________________ Not happy with your email address?. Get the one you really want - millions of new email addresses available now at Yahoo! http://uk.docs.yahoo.com/ymail/new.html --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]