[cairo] Re: Patches for speeding up _cairo_fixed_from_double

Daniel Amelang daniel.amelang at gmail.com
Thu Nov 2 16:42:43 PST 2006


On 11/1/06, Daniel Amelang <daniel.amelang at gmail.com> wrote:
> On a side note, I tried inlining the function to see what would
> happen, and I got a 471x slowdown. Pretty bizarre; I'll have to look
> into that later.

An update on this: I think the latest git cairo fixes the strange
statistical anomalies I had. So, after trying inlining the function
again, I now see that inlining doesn't provide any meaningful speedup,
IMO, but I'm attaching the perf-diff in case someone's interested.

Dan
-------------- next part --------------
Speedups
========
 xlib-rgba      fill_radial_rgba_over-256    8.76 0.86% ->   6.97 0.96%:  1.26x speedup
???
 xlib-rgba    paint_solid_rgba_source-512    0.28 0.65% ->   0.23 0.65%:  1.23x speedup
???
 xlib-rgba       paint_solid_rgb_over-512    0.28 0.68% ->   0.23 0.81%:  1.23x speedup
???
 xlib-rgba     paint_solid_rgb_source-512    0.28 0.65% ->   0.23 0.52%:  1.23x speedup
???
 xlib-rgba    fill_radial_rgba_source-256    9.92 0.90% ->   8.11 0.81%:  1.22x speedup
???
image-rgba    paint_image_rgba_source-512    0.76 2.46% ->   0.69 1.90%:  1.10x speedup
???
image-rgba  paint_similar_rgba_source-512    0.75 1.16% ->   0.69 2.43%:  1.09x speedup
???
 xlib-rgba     paint_similar_rgb_over-512    0.93 3.05% ->   0.85 3.60%:  1.09x speedup
???
image-rgb               subimage_copy-64     0.01 0.38% ->   0.01 0.29%:  1.06x speedup
???
 xlib-rgba   paint_radial_rgba_source-256   14.13 0.56% ->  13.34 0.66%:  1.06x speedup

image-rgb               subimage_copy-128    0.01 0.51% ->   0.01 0.55%:  1.06x speedup

Slowdowns
=========
 xlib-rgb       pattern_create_radial-16     3.02 1.55% ->   4.02 0.95%:  1.33x slowdown
???
 xlib-rgba      pattern_create_radial-16     3.47 1.18% ->   4.02 0.97%:  1.16x slowdown
???
 xlib-rgba    paint_radial_rgb_source-256   13.28 3.45% ->  14.12 1.02%:  1.06x slowdown
???
image-rgba       fill_radial_rgb_over-256    4.96 0.55% ->   5.25 0.88%:  1.06x slowdown

image-rgba      fill_radial_rgba_over-256    5.16 1.26% ->   5.45 1.20%:  1.06x slowdown


More information about the cairo mailing list