mirror of
https://github.com/NixOS/nix
synced 2025-06-29 06:21:14 +02: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
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue