diff options
author | AmineChikhaoui <amine.chikhaoui91@gmail.com> | 2018-02-07 17:54:08 +0100 |
---|---|---|
committer | AmineChikhaoui <amine.chikhaoui91@gmail.com> | 2018-02-07 17:54:08 +0100 |
commit | 55ecdfe2a83a161c27d6497733cdc60fa112a43d (patch) | |
tree | 65fa86164a490f60aead0ecabb98b38c1c723ccb /src/libstore/binary-cache-store.cc | |
parent | 163e39547ae6f69586e23b85e462bfc5a2131a17 (diff) |
make multi threaded compression configurable and use single threaded
by default.
Diffstat (limited to 'src/libstore/binary-cache-store.cc')
-rw-r--r-- | src/libstore/binary-cache-store.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/binary-cache-store.cc b/src/libstore/binary-cache-store.cc index ab971dd8b..d34adbd60 100644 --- a/src/libstore/binary-cache-store.cc +++ b/src/libstore/binary-cache-store.cc @@ -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(); |