Skip to content

Commit

Permalink
increase disk buffer size from 4Kb to 4Mb
Browse files Browse the repository at this point in the history
  • Loading branch information
javierluraschi committed Aug 22, 2017
1 parent 4813a4a commit f86aa27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/warc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ DataFrame rcpp_read_warc(std::string path,
gzFile gzf = gzdopen(fileno(fp), "rb");
if (!gzf) Rcpp::stop("Failed to open WARC as a compressed file.");

const int buffer_size = 4 * 1024;
const int buffer_size = 4 * 1024 * 1024;
char buffer[buffer_size] = {'\0'};

std::list<std::string> warc_entries;
Expand Down

0 comments on commit f86aa27

Please sign in to comment.