diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2020-07-21 16:39:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-21 16:39:31 +0200 |
commit | 1346da4669b2c1b9d73bb4b77eef03d8aecdc447 (patch) | |
tree | 70ec84c0ff7da7f91e83a8d128cebfccda80ec63 /src | |
parent | 0835447eaacacdb4c1241971c584c88acd274b99 (diff) | |
parent | 922a845ffc4eaa51797bc376d237c6216f0d8391 (diff) |
Merge pull request #3844 from obsidiansystems/update-chunksize-to-suggested-value
Update chunkSize to the suggested value
Diffstat (limited to 'src')
-rw-r--r-- | src/libstore/local-store.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/local-store.cc b/src/libstore/local-store.cc index 340fb5306..9ea71170f 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; |