GNOME Bugzilla – Bug 789704
grey: Use alpha only if the source has it
Last modified: 2017-10-31 12:34:16 UTC
Avoiding a needless alpha channel when the source doesn't have alpha gives a significant performance boost. On an Intel i7 Haswell system, with 15 megapixel "R'G'B'A u8" and "R'G'B' u8" buffers as inputs, the speed drops from ~0.16s to ~0.08s when using the CPU, and drops from ~0.32s to ~0.22s when using OpenCL. See the attached test case.
Created attachment 362619 [details] [review] operations/common/grey: Use alpha only if the source has it
Created attachment 362620 [details] Test case This was run with GEGL_THREADS=2, where 2 is the number of physical cores.
From #gegl on GIMPNet: <pippin> rishi: feel free to push and close 789704 yourself :)