jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r706606 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/SearchIndex.java
Date Tue, 21 Oct 2008 12:44:25 GMT
Author: mreutegg
Date: Tue Oct 21 05:44:25 2008
New Revision: 706606

URL: http://svn.apache.org/viewvc?rev=706606&view=rev
Log:
JCR-1826: Change default value of SearchIndex extractorPoolSize

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/SearchIndex.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/SearchIndex.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/SearchIndex.java?rev=706606&r1=706605&r2=706606&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/SearchIndex.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/SearchIndex.java
Tue Oct 21 05:44:25 2008
@@ -135,6 +135,8 @@
 
     /**
      * The default value for property {@link #extractorPoolSize}.
+     * @deprecated this value is not used anymore. Instead the default value
+     * is calculated as follows: 2 * Runtime.getRuntime().availableProcessors().
      */
     public static final int DEFAULT_EXTRACTOR_POOL_SIZE = 0;
 
@@ -239,7 +241,7 @@
     /**
      * extractorPoolSize config parameter
      */
-    private int extractorPoolSize = DEFAULT_EXTRACTOR_POOL_SIZE;
+    private int extractorPoolSize = 2 * Runtime.getRuntime().availableProcessors();
 
     /**
      * extractorBackLog config parameter



Mime
View raw message