comparison 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
comparison
equal deleted inserted replaced
576:3c4db86e8c1f 577:5d7399ade999
539 // 539 //
540 // reuse some instances 540 // reuse some instances
541 final Patch patch = new Patch(); 541 final Patch patch = new Patch();
542 final Inflater inflater = new Inflater(); 542 final Inflater inflater = new Inflater();
543 // can share buffer between instances of InflaterDataAccess as I never read any two of them in parallel 543 // can share buffer between instances of InflaterDataAccess as I never read any two of them in parallel
544 final byte[] inflaterBuffer = new byte[1024]; 544 final byte[] inflaterBuffer = new byte[10 * 1024]; // TODO consider using DAP.DEFAULT_FILE_BUFFER
545 // 545 //
546 546
547 for (; i <= end; i++ ) { 547 for (; i <= end; i++ ) {
548 if (inline && needData) { 548 if (inline && needData) {
549 // inspector reading data (though FilterDataAccess) may have affected index position 549 // inspector reading data (though FilterDataAccess) may have affected index position