mirror of
https://github.com/NixOS/nix.git
synced 2025-11-11 04:56:01 +01:00
make multi threaded compression configurable and use single threaded
by default.
This commit is contained in:
parent
163e39547a
commit
55ecdfe2a8
4 changed files with 31 additions and 20 deletions
|
|
@ -149,7 +149,7 @@ void BinaryCacheStore::addToStore(const ValidPathInfo & info, const ref<std::str
|
|||
/* Compress the NAR. */
|
||||
narInfo->compression = compression;
|
||||
auto now1 = std::chrono::steady_clock::now();
|
||||
auto narCompressed = compress(compression, *nar);
|
||||
auto narCompressed = compress(compression, *nar, settings.parallelCompression);
|
||||
auto now2 = std::chrono::steady_clock::now();
|
||||
narInfo->fileHash = hashString(htSHA256, *narCompressed);
|
||||
narInfo->fileSize = narCompressed->size();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue