Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
bedtools2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
R3
legacy
bedtools2
Commits
284148c0
Commit
284148c0
authored
11 years ago
by
nkindlon
Browse files
Options
Downloads
Patches
Plain Diff
Corrected comment and constant for MAIN_BUF_READ_SIZE.
parent
fba95089
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/utils/FileRecordTools/FileReaders/BufferedStreamMgr.cpp
+1
-1
1 addition, 1 deletion
src/utils/FileRecordTools/FileReaders/BufferedStreamMgr.cpp
src/utils/FileRecordTools/FileReaders/BufferedStreamMgr.h
+1
-1
1 addition, 1 deletion
src/utils/FileRecordTools/FileReaders/BufferedStreamMgr.h
with
2 additions
and
2 deletions
src/utils/FileRecordTools/FileReaders/BufferedStreamMgr.cpp
+
1
−
1
View file @
284148c0
...
@@ -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
());
...
...
This diff is collapsed.
Click to expand it.
src/utils/FileRecordTools/FileReaders/BufferedStreamMgr.h
+
1
−
1
View file @
284148c0
...
@@ -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 M
b minus 1
static
const
int
MAIN_BUF_READ_SIZE
=
2047
;
//
2 K
b 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
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment