diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2018-02-09T14·03+0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-09T14·03+0100 |
commit | 3d2d207aadb8e93760a9e417392208266f9985a3 (patch) | |
tree | e966f3b864f40a6acfdcb7ac7d964e56ddb76d80 /src/libstore/binary-cache-store.cc | |
parent | ad97a218344937d8586d0f4f710f3785da77f5bd (diff) | |
parent | 0685a6480a0056be6282826dd4a0ad9f755dcf23 (diff) |
Merge pull request #1848 from AmineChikhaoui/parallel-xz
support multi threaded xz encoder
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 ab971dd8b6d9..d1b278b8efbe 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, parallelCompression); auto now2 = std::chrono::steady_clock::now(); narInfo->fileHash = hashString(htSHA256, *narCompressed); narInfo->fileSize = narCompressed->size(); |