diff src/com/tmate/hgkit/ll/RevlogStream.java @ 33:565ce0835674

TODO added, to try stream for unzip in revlog
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Thu, 13 Jan 2011 03:42:14 +0100
parents d4fdd1845b3f
children 6061aa826a9e
line wrap: on
line diff
--- a/src/com/tmate/hgkit/ll/RevlogStream.java	Thu Jan 13 03:41:10 2011 +0100
+++ b/src/com/tmate/hgkit/ll/RevlogStream.java	Thu Jan 13 03:42:14 2011 +0100
@@ -165,7 +165,7 @@
 					}
 					if (dataBuf[0] == 0x78 /* 'x' */) {
 						try {
-							Inflater zlib = new Inflater();
+							Inflater zlib = new Inflater(); // XXX Consider reuse of Inflater, and/or stream alternative
 							zlib.setInput(dataBuf, 0, compressedLen);
 							byte[] result = new byte[actualLen*2]; // FIXME need to use zlib.finished() instead 
 							int resultLen = zlib.inflate(result);