jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thom...@apache.org
Subject svn commit: r1165322 - /jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/blobs/AbstractBlobStore.java
Date Mon, 05 Sep 2011 15:13:51 GMT
Author: thomasm
Date: Mon Sep  5 15:13:51 2011
New Revision: 1165322

URL: http://svn.apache.org/viewvc?rev=1165322&view=rev
Log:
Use a larger blob size by default (reduced number of files).

Modified:
    jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/blobs/AbstractBlobStore.java

Modified: jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/blobs/AbstractBlobStore.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/blobs/AbstractBlobStore.java?rev=1165322&r1=1165321&r2=1165322&view=diff
==============================================================================
--- jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/blobs/AbstractBlobStore.java
(original)
+++ jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/blobs/AbstractBlobStore.java
Mon Sep  5 15:13:51 2011
@@ -67,10 +67,10 @@ public abstract class AbstractBlobStore 
     private int blockSizeMin = 256;
 
     /**
-     * The size of a block. This number has been found to be as fast as larger
-     * values, and faster than smaller values.
+     * The size of a block. 128 * 1024 (128 KB) has been found to be as fast as larger
+     * values, and faster than smaller values. 2 MB results in less files.
      */
-    private int blockSize = 128 * 1024;
+    private int blockSize = 2 * 1024 * 1024;
 
     private SmallLRUCache<String, byte[]> cache = SmallLRUCache.newInstance(5);
 



Mime
View raw message