diff options
| author | Bryce Kwon <bryce@brycekwon.com> | |
|---|---|---|
| committer | Bryce Kwon <bryce@brycekwon.com> | |
| commit | ||
| parent | ||
| tree | ||
| download | ||
Compress xz snapshots on one thread
Current xz uses a thread per core unless told otherwise, so a single
tar.xz request could keep every core busy, unlike the other compressors.
Diffstat (limited to '')
| -rw-r--r-- | source/ui-snapshot.c | 3 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
1 file changed, 2 insertions, 1 deletion
diff --git a/source/ui-snapshot.c b/source/ui-snapshot.c index dae3459..32d40f8 100644 --- a/source/ui-snapshot.c +++ b/source/ui-snapshot.c @@ -136,7 +136,8 @@ static int write_tar_lzip_archive(const char *hex, const char *prefix) static int write_tar_xz_archive(const char *hex, const char *prefix) { - const char *argv[] = { "xz", NULL }; + // Current xz runs a thread per core unless told otherwise. + const char *argv[] = { "xz", "-T1", NULL }; return write_compressed_tar_archive(hex, prefix, argv); } |
