aboutsummaryrefslogtreecommitdiffstats
path: root/prog/compression.go
Commit message (Collapse)AuthorAgeFilesLines
* pkg/image: factor out from progDmitry Vyukov2022-12-221-71/+0
| | | | | | | Move image compression-related function to a separate package. In preperation for subsequent changes that make decompression more complex. Prog package is already large and complex. Also makes running compression tests/benchmarks much faster.
* prog: don't materialize uncompressed image in DeserializeDmitry Vyukov2022-11-251-6/+10
| | | | | | | | | | Currently we uncompress all images in Deserialize to check that the data is valid. As the result deserializing all seeds we have takes ~40 seconds of real time and ~125 seconds of CPU time. And we do this during every syz-manager start. Don't materialize the uncompressed image. This reduces real time to ~15 seconds and CPU time to 18 seconds (no garbage collections). In syz-manager the benefit is even larger since garbage collections take longer (larger heap).
* prog: add (de)compression wrappersHrutvik Kanabar2022-11-211-0/+67
Add the file `compression.go`, with entry points for compressing/decompressing using `zlib`, and encoding/decoding Base64. Also add roundtrip compress/decompress and encode/decode tests.