[cairo] Regression in long random polyline rendering time

Emmanuel Pacaud emmanuel.pacaud at lapp.in2p3.fr
Fri Sep 25 12:17:10 PDT 2009


Please find attached a sample program that shows a regression in current
cairo when rendering a long random polyline.

gcc `pkg-config --cflags cairo` `pkg-config --libs cairo` polyline.c -o polyline

Launch it with ./polyline n_iter

Here are the rough timing results I obtain:

n_iterations cairo-1.8.8 cairo master
10 0.007 s 0.009 s
100 0.012 s 0.015 s
1000 0.041 s 0.335 s
10000 0.302 s 27.105 s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: polyline.c
Type: text/x-csrc
Size: 807 bytes
Url : http://lists.cairographics.org/archives/cairo/attachments/20090925/21ffe36f/attachment.c 

More information about the cairo mailing list