GNOME Bugzilla – Bug 306029
gdk-pixbuf/pixops/pixops.c process_pixel() optimization
Last modified: 2010-07-10 04:08:31 UTC
I have optimized version of process_pixel(). Benchmark result on Celeron 1200 (iterations per second): Times per sec OLD: 6005 (original code) Times per sec FIN: 8092 (new code) Was also tested on Athlon 2000 MHz. A test program is attached. Please review. Code can be directly cut-n-pasted from FIN_process_pixel() into gtk's process_pixel() if you find it worthy. Test program contains several earlier (less efficient) versions. Have fun.
Created attachment 47065 [details] Test program
Where is the patch?
Created attachment 64904 [details] [review] Patch against 2.8.13
Created attachment 65096 [details] [review] Updated patch against 2.8.13 (initial q value calculation is moved out of loop)
Optimizing the process_pixel() function is pretty pointless, since it is only used for the edge cases. The bulk of the work happens in the line_func. Have you measured any improvement due to your patch ? gdk-pixbuf comes with a simple timescale program to measure the performance of various operations.
No response in a long time