aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/local-store.cc
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2020-07-23 14:56:35 +0000
committerJohn Ericson <John.Ericson@Obsidian.Systems>2020-07-23 14:56:35 +0000
commit66a2067288a86dae19aecfa9e6a5b2d37952669f (patch)
tree1ad09173a72af8b37d2439e6900983cd70e2571f /src/libstore/local-store.cc
parentcdb3f39b64fa9e1d1c85bd3ba3a4b8b1c480bb2c (diff)
parent4bfba1305ed004c7b23b4e288efa707807cf2ac3 (diff)
Merge remote-tracking branch 'upstream/master' into better-ca-parse-errors
Diffstat (limited to 'src/libstore/local-store.cc')
-rw-r--r--src/libstore/local-store.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/local-store.cc b/src/libstore/local-store.cc
index b053d9b76..2911d8b33 100644
--- a/src/libstore/local-store.cc
+++ b/src/libstore/local-store.cc
@@ -1069,7 +1069,7 @@ StorePath LocalStore::addToStoreFromDump(Source & source0, const string & name,
or the original source is empty */
while (dump.size() < settings.narBufferSize) {
auto oldSize = dump.size();
- constexpr size_t chunkSize = 1024;
+ constexpr size_t chunkSize = 65536;
auto want = std::min(chunkSize, settings.narBufferSize - oldSize);
dump.resize(oldSize + want);
auto got = 0;