forked from lix-project/lix
Merge pull request #3844 from obsidiansystems/update-chunksize-to-suggested-value
Update chunkSize to the suggested value
This commit is contained in:
commit
1346da4669
1 changed files with 1 additions and 1 deletions
|
@ -1069,7 +1069,7 @@ StorePath LocalStore::addToStoreFromDump(Source & source0, const string & name,
|
||||||
or the original source is empty */
|
or the original source is empty */
|
||||||
while (dump.size() < settings.narBufferSize) {
|
while (dump.size() < settings.narBufferSize) {
|
||||||
auto oldSize = dump.size();
|
auto oldSize = dump.size();
|
||||||
constexpr size_t chunkSize = 1024;
|
constexpr size_t chunkSize = 65536;
|
||||||
auto want = std::min(chunkSize, settings.narBufferSize - oldSize);
|
auto want = std::min(chunkSize, settings.narBufferSize - oldSize);
|
||||||
dump.resize(oldSize + want);
|
dump.resize(oldSize + want);
|
||||||
auto got = 0;
|
auto got = 0;
|
||||||
|
|
Loading…
Reference in a new issue