[cairo] Performance of the image surface back-end

Jeff Muizelaar jeff at infidigm.net
Fri Aug 15 07:29:37 PDT 2008


On Fri, Aug 15, 2008 at 04:17:26PM +0200, Emmanuel Pacaud wrote:
> Hi,
> 
> Le vendredi 15 août 2008 à 15:20 +0200, Nicholas Allen a écrit :
> > I am amazed that our reasonably simple and quick implementations are
> > so 
> > significantly faster than Cairo's. I realize Cairo is a more generic API 
> > but I had expected it to fall back to reasonably efficient 
> > implementations for common cases like filling rectangles on pixel 
> > boundaries and drawing horizontal and vertical lines. I expect, these 
> > are probably the most common cases for operations inside GUI programs 
> > where widgets draw and fill rectangles on pixel boundaries and that our 
> > application is not unique in these requirements.   I realize that I have 
> > not used the latest Cairo but it did not seem from the change log that 
> > much work has been done on optimizing the image back-end and I could not 
> > find a pre-build 1.7.4 version for Windows.
> 
> It would be nice if you could show us the source of the test code you
> use, especially the cairo call part.

If you could also point us at the pre-built version of cairo you're
using that would be helpful. Perhaps you're not hitting the mmx code
paths...

-Jeff


More information about the cairo mailing list