Skip to content
Snippets Groups Projects
Commit 284148c0 authored by nkindlon's avatar nkindlon
Browse files

Corrected comment and constant for MAIN_BUF_READ_SIZE.

parent fba95089
No related branches found
No related tags found
No related merge requests found
...@@ -54,7 +54,7 @@ bool BufferedStreamMgr::init() ...@@ -54,7 +54,7 @@ bool BufferedStreamMgr::init()
if (_inputStreamMgr->isGzipped()) { if (_inputStreamMgr->isGzipped()) {
_useBufSize = GZIP_LINE_BUF_SIZE; _useBufSize = GZIP_LINE_BUF_SIZE;
} else { } else {
_useBufSize = 67108863; //64Mb -1 _useBufSize = MAIN_BUF_READ_SIZE;
} }
size_t trueBufSize = max(_useBufSize, (int)_currScanBuffer.size()); size_t trueBufSize = max(_useBufSize, (int)_currScanBuffer.size());
......
...@@ -43,7 +43,7 @@ private: ...@@ -43,7 +43,7 @@ private:
bool _streamFinished; bool _streamFinished;
QuickString _currScanBuffer; QuickString _currScanBuffer;
//The minus ones in these constants are for leaving room for a null terminator after reading into buffers. //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 static const int GZIP_LINE_BUF_SIZE = 8191; // 8K
bool readFileChunk(); bool readFileChunk();
bool getTypeData(); bool getTypeData();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment