Commit ea8aa62
[collect] Do not compress top-level collector archive
Previously, when running `sos collect`, the resulting archive that
contained sos report archives, would itself be compressed. This "top
level" compression did not actually gain us much, but did have a time
penalty to overall collect execution times.
This commit solves this by allowing a `None` value to be
used for the compression method when calling `Archive.finalize()`, which
will skip compressing that archive. The actual sos reports that a
collect execution captures are still compressed.
Note: this "none" option is not currently exposed on the CLI, and all
sos reports will still be compressed.
Resolves: sosreport#3992
Signed-off-by: Jake Hunsaker <jacob.r.hunsaker@gmail.com>1 parent 8b7a333 commit ea8aa62
2 files changed
Lines changed: 15 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
726 | 726 | | |
727 | 727 | | |
728 | 728 | | |
| 729 | + | |
729 | 730 | | |
730 | 731 | | |
731 | | - | |
732 | | - | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
733 | 737 | | |
734 | 738 | | |
735 | | - | |
736 | | - | |
737 | | - | |
738 | | - | |
739 | | - | |
740 | | - | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
741 | 747 | | |
742 | 748 | | |
743 | 749 | | |
| |||
751 | 757 | | |
752 | 758 | | |
753 | 759 | | |
754 | | - | |
755 | 760 | | |
756 | 761 | | |
757 | 762 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1417 | 1417 | | |
1418 | 1418 | | |
1419 | 1419 | | |
1420 | | - | |
| 1420 | + | |
1421 | 1421 | | |
1422 | 1422 | | |
1423 | 1423 | | |
| |||
0 commit comments