This repository has been archived by the owner on Jun 11, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use chunky_png/oily_png :fast_rgb option when saving
According to the chunky_png wiki: > ChunkyPNG tries to detect the optimal encoding parameters when saving > an image. The detection costs some time, and it may choose a slow > encoding method. To override the detection mechanism, and always save > as RGB or RGBA image, use the @:fast_rgba@ or @:fast_rgb@ modifier > when calling save https://github.com/wvanbergen/chunky_png/wiki#encoding-options Since we know that we are always only dealing with RGB images here and speed is more important to us than space for this use-case, we can get a nice little win here. This brought the runtime on the Brigade diffux test suite down from ~170s to ~132s.
- Loading branch information
07dce0f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!