From 284148c01fb2bfb4074bf792511e696254c0105b Mon Sep 17 00:00:00 2001 From: nkindlon <nek3d@virginia.edu> Date: Tue, 17 Dec 2013 21:57:50 -0500 Subject: [PATCH] Corrected comment and constant for MAIN_BUF_READ_SIZE. --- src/utils/FileRecordTools/FileReaders/BufferedStreamMgr.cpp | 2 +- src/utils/FileRecordTools/FileReaders/BufferedStreamMgr.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/FileRecordTools/FileReaders/BufferedStreamMgr.cpp b/src/utils/FileRecordTools/FileReaders/BufferedStreamMgr.cpp index 78590a7e..55ec8865 100644 --- a/src/utils/FileRecordTools/FileReaders/BufferedStreamMgr.cpp +++ b/src/utils/FileRecordTools/FileReaders/BufferedStreamMgr.cpp @@ -54,7 +54,7 @@ bool BufferedStreamMgr::init() if (_inputStreamMgr->isGzipped()) { _useBufSize = GZIP_LINE_BUF_SIZE; } else { - _useBufSize = 67108863; //64Mb -1 + _useBufSize = MAIN_BUF_READ_SIZE; } size_t trueBufSize = max(_useBufSize, (int)_currScanBuffer.size()); diff --git a/src/utils/FileRecordTools/FileReaders/BufferedStreamMgr.h b/src/utils/FileRecordTools/FileReaders/BufferedStreamMgr.h index ca9d2545..963b5ce3 100644 --- a/src/utils/FileRecordTools/FileReaders/BufferedStreamMgr.h +++ b/src/utils/FileRecordTools/FileReaders/BufferedStreamMgr.h @@ -43,7 +43,7 @@ private: bool _streamFinished; QuickString _currScanBuffer; //The minus ones in these constants are for leaving room for a null terminator after reading into buffers. -// static const int MAIN_BUF_READ_SIZE = 2047; //64 Mb minus 1 + static const int MAIN_BUF_READ_SIZE = 2047; // 2 Kb minus 1 static const int GZIP_LINE_BUF_SIZE = 8191; // 8K bool readFileChunk(); bool getTypeData(); -- GitLab