[cairo] Very slow performance

TOKUNAGA Hiroyuki tkng at xem.jp
Thu Dec 23 10:33:57 PST 2004


Hi,

Recent performance patch by Alexander Larsson was very great (I can feel
now cairo is faster than before!), but I noticed that latest libpixman
still has a little performance bug. Attached patch will fix the bug. It
reduced the test running time from 83 seconds to 16 seconds on my
machine.


Regards,

-- 
TOKUNAGA Hiroyuki
tkng at xem.jp
http://kodou.net/
-------------- next part --------------
Index: src/icrect.c
===================================================================
RCS file: /cvs/cairo/libpixman/src/icrect.c,v
retrieving revision 1.11
diff -u -r1.11 icrect.c
--- src/icrect.c	20 Dec 2004 14:15:21 -0000	1.11
+++ src/icrect.c	23 Dec 2004 18:17:37 -0000
@@ -174,7 +174,7 @@
 
     if (dst->pixels->bpp == 8)
 	func = pixman_fill_rect_8bbp;
-    else if (dst->pixels->bpp == 8)
+    else if (dst->pixels->bpp == 32)
 	func = pixman_fill_rect_32bbp;
     else 
 	func = pixman_fill_rect_general;


More information about the cairo mailing list