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/libutil/compression.hh | |
parent | ad97a218344937d8586d0f4f710f3785da77f5bd (diff) | |
parent | 0685a6480a0056be6282826dd4a0ad9f755dcf23 (diff) |
Merge pull request #1848 from AmineChikhaoui/parallel-xz
support multi threaded xz encoder
Diffstat (limited to 'src/libutil/compression.hh')
-rw-r--r-- | src/libutil/compression.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libutil/compression.hh b/src/libutil/compression.hh index e3e6f5a99303..a0d7530d74fc 100644 --- a/src/libutil/compression.hh +++ b/src/libutil/compression.hh @@ -8,7 +8,7 @@ namespace nix { -ref<std::string> compress(const std::string & method, const std::string & in); +ref<std::string> compress(const std::string & method, const std::string & in, const bool parallel = false); ref<std::string> decompress(const std::string & method, const std::string & in); @@ -17,7 +17,7 @@ struct CompressionSink : BufferedSink virtual void finish() = 0; }; -ref<CompressionSink> makeCompressionSink(const std::string & method, Sink & nextSink); +ref<CompressionSink> makeCompressionSink(const std::string & method, Sink & nextSink, const bool parallel = false); MakeError(UnknownCompressionMethod, Error); |