lower chunk size limit slightly to prevent reading too much

This commit is contained in:
millmanorama 2017-01-26 17:39:54 +01:00
parent 15d9086127
commit 9d04c52a0c

View File

@ -40,7 +40,7 @@ class Chunker implements Iterator<Chunk>, Iterable<Chunk> {
//Chunking algorithm paramaters-------------------------------------// //Chunking algorithm paramaters-------------------------------------//
/** the maximum size of a chunk, including the window. */ /** the maximum size of a chunk, including the window. */
private static final int MAX_TOTAL_CHUNK_SIZE = 32766; //bytes private static final int MAX_TOTAL_CHUNK_SIZE = 32760; //bytes
/** the minimum to read before we start the process of looking for /** the minimum to read before we start the process of looking for
* whitespace to break at and creating an overlapping window. */ * whitespace to break at and creating an overlapping window. */
private static final int MINIMUM_BASE_CHUNK_SIZE = 30 * 1024; //bytes private static final int MINIMUM_BASE_CHUNK_SIZE = 30 * 1024; //bytes