diff options
author | AmineChikhaoui <amine.chikhaoui91@gmail.com> | 2018-02-07T16·54+0100 |
---|---|---|
committer | AmineChikhaoui <amine.chikhaoui91@gmail.com> | 2018-02-07T16·54+0100 |
commit | 55ecdfe2a83a161c27d6497733cdc60fa112a43d (patch) | |
tree | 65fa86164a490f60aead0ecabb98b38c1c723ccb /src/libutil/compression.hh | |
parent | 163e39547ae6f69586e23b85e462bfc5a2131a17 (diff) |
make multi threaded compression configurable and use single threaded
by default.
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); |