Mercurial > jhg
diff src/org/tmatesoft/hg/internal/RevlogStream.java @ 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 | 6ca3d0c5b4bc |
children | bd5926e24aa3 |
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++ ) {