set PNG compression level back to 1
On my machine, this cuts the CPU time to run all GMs and write out PNGs by about half, from ~67s to ~34s (wall, 4s -> 3s). File size goes from 148M to 180M, about a 22% increase. Change-Id: I50f051e5c87cc6854797d6838e0342cbd7e95003 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/204130 Reviewed-by: Mike Klein <mtklein@google.com> Commit-Queue: Mike Klein <mtklein@google.com> Auto-Submit: Mike Klein <mtklein@google.com>
This commit is contained in:
parent
baa1b357ef
commit
22a5e345c9
@ -137,8 +137,7 @@ bool HashAndEncode::writePngTo(const char* path,
|
||||
|
||||
// Fastest encoding and decoding, at slight file size cost is no filtering, compression 1.
|
||||
png_set_filter(png, PNG_FILTER_TYPE_BASE, PNG_FILTER_NONE);
|
||||
// TODO(mtklein): set back to 1 after all the bots have cycled through new images / hashes?
|
||||
png_set_compression_level(png, 9);
|
||||
png_set_compression_level(png, 1);
|
||||
|
||||
static const sk_sp<SkData> profile = SkWriteICCProfile(k2020_TF, SkNamedGamut::kRec2020);
|
||||
png_set_iCCP(png, info,
|
||||
|
Loading…
Reference in New Issue
Block a user