lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jpou...@apache.org
Subject svn commit: r1633305 - /lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/util/DocIdSetBuilder.java
Date Tue, 21 Oct 2014 08:08:05 GMT
Author: jpountz
Date: Tue Oct 21 08:08:04 2014
New Revision: 1633305

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

Modified:
    lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/util/DocIdSetBuilder.java

Modified: lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/util/DocIdSetBuilder.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/util/DocIdSetBuilder.java?rev=1633305&r1=1633304&r2=1633305&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/util/DocIdSetBuilder.java (original)
+++ lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/util/DocIdSetBuilder.java Tue
Oct 21 08:08:04 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