hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cutt...@apache.org
Subject svn commit: r383691 - /lucene/hadoop/trunk/src/java/org/apache/hadoop/io/SequenceFile.java
Date Mon, 06 Mar 2006 22:12:04 GMT
Author: cutting
Date: Mon Mar  6 14:12:03 2006
New Revision: 383691

URL: http://svn.apache.org/viewcvs?rev=383691&view=rev
Log:
Increase deflater & inflater buffer size, for better performance.

Modified:
    lucene/hadoop/trunk/src/java/org/apache/hadoop/io/SequenceFile.java

Modified: lucene/hadoop/trunk/src/java/org/apache/hadoop/io/SequenceFile.java
URL: http://svn.apache.org/viewcvs/lucene/hadoop/trunk/src/java/org/apache/hadoop/io/SequenceFile.java?rev=383691&r1=383690&r2=383691&view=diff
==============================================================================
--- lucene/hadoop/trunk/src/java/org/apache/hadoop/io/SequenceFile.java (original)
+++ lucene/hadoop/trunk/src/java/org/apache/hadoop/io/SequenceFile.java Mon Mar  6 14:12:03
2006
@@ -58,7 +58,7 @@
 
     private boolean deflateValues;
     private DataOutputBuffer deflateIn = new DataOutputBuffer();
-    private byte[] deflateOut = new byte[1024];
+    private byte[] deflateOut = new byte[8192];
     private Deflater deflater = new Deflater(Deflater.BEST_SPEED);
 
     // Insert a globally unique 16-byte value every few entries, so that one
@@ -219,7 +219,7 @@
     private int keyLength;
 
     private boolean inflateValues;
-    private byte[] inflateIn = new byte[1024];
+    private byte[] inflateIn = new byte[8192];
     private DataOutputBuffer inflateOut = new DataOutputBuffer();
     private Inflater inflater = new Inflater();
     private Configuration conf;



Mime
View raw message