lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jpou...@apache.org
Subject svn commit: r1633306 - in /lucene/dev/branches/branch_5x: ./ lucene/ lucene/core/ lucene/core/src/java/org/apache/lucene/util/DocIdSetBuilder.java
Date Tue, 21 Oct 2014 08:09:54 GMT
Author: jpountz
Date: Tue Oct 21 08:09:54 2014
New Revision: 1633306

URL: http://svn.apache.org/r1633306
Log:
LUCENE-6015: DocIdSetBuilder: Use the sparse set until more than 1/16 of the longs have one
bit set.

Modified:
    lucene/dev/branches/branch_5x/   (props changed)
    lucene/dev/branches/branch_5x/lucene/   (props changed)
    lucene/dev/branches/branch_5x/lucene/core/   (props changed)
    lucene/dev/branches/branch_5x/lucene/core/src/java/org/apache/lucene/util/DocIdSetBuilder.java

Modified: lucene/dev/branches/branch_5x/lucene/core/src/java/org/apache/lucene/util/DocIdSetBuilder.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/lucene/core/src/java/org/apache/lucene/util/DocIdSetBuilder.java?rev=1633306&r1=1633305&r2=1633306&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/lucene/core/src/java/org/apache/lucene/util/DocIdSetBuilder.java
(original)
+++ lucene/dev/branches/branch_5x/lucene/core/src/java/org/apache/lucene/util/DocIdSetBuilder.java
Tue Oct 21 08:09:54 2014
@@ -40,7 +40,7 @@ public final class DocIdSetBuilder {
   /** Sole constructor. */
   public DocIdSetBuilder(int maxDoc) {
     this.maxDoc = maxDoc;
-    threshold = maxDoc >>> 14;
+    threshold = maxDoc >>> 10;
   }
 
   /**



Mime
View raw message