changeset 577:5d7399ade999

Enlarge inflater buffer to reduce number of inflates per read
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Tue, 16 Apr 2013 20:41:36 +0200
parents 3c4db86e8c1f
children f97e81d13190
files src/org/tmatesoft/hg/internal/RevlogStream.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/internal/RevlogStream.java	Tue Apr 16 19:31:57 2013 +0200
+++ b/src/org/tmatesoft/hg/internal/RevlogStream.java	Tue Apr 16 20:41:36 2013 +0200
@@ -541,7 +541,7 @@
 			final Patch patch = new Patch();
 			final Inflater inflater = new Inflater();
 			// can share buffer between instances of InflaterDataAccess as I never read any two of them in parallel
-			final byte[] inflaterBuffer = new byte[1024];
+			final byte[] inflaterBuffer = new byte[10 * 1024]; // TODO consider using DAP.DEFAULT_FILE_BUFFER
 			//
 			
 			for (; i <= end; i++ ) {