Commit 93ebd22
committed
Support zstd compression
I hardcoded compression level 10. On my system it compresses the
initramfs I generated under a second.
Numbers from my testing:
* ugrd.cpio is 20MB
* ugrd.cpio.xz is 6.2MB
* Compression takes 14s
* Decompression takes 0.5s
* ugrd.cpio.zst is 7.5MB
* Compress takes 0.88s
* Decompression takes 0.08s1 parent 83aec9a commit 93ebd22
2 files changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
58 | 63 | | |
59 | 64 | | |
60 | 65 | | |
| |||
0 commit comments