[ https://issues.apache.org/jira/browse/LUCENE-1485?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12654994#action_12654994 ]
Jason Rutherglen commented on LUCENE-1485: ------------------------------------------ This above test was using the -client option in the JVM on Mac OS X. Using -server the numbers look almost the same for OpenBitSet and BitVector with BitVector being slightly faster. > Use OpenBitSet instead of BitVector in SegmentReader > ---------------------------------------------------- > > Key: LUCENE-1485 > URL: https://issues.apache.org/jira/browse/LUCENE-1485 > Project: Lucene - Java > Issue Type: Improvement > Components: Index > Affects Versions: 2.4 > Reporter: Jason Rutherglen > Priority: Minor > Attachments: TestDeletedDocsSpeed.java > > Original Estimate: 96h > Remaining Estimate: 96h > > Tried out BitVector.get vs OpenBitSet.get here's the results which are about > the same after running 25 times in milliseconds. It is assumed that > implementing DocIdSetIterator in SegmentTermDocs will speed things up more. > bit set size: 10,485,760 > set bits count: 524,032 > openbitset: 68 > bitvector: 89 > 24% speed increase. > I will implement a patch that adds the WriteableBitSet interface and make a > subclass of OpenBitSet that is writeable to disk. We're working on an > isSparse method for OpenBitSet. -- 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]