[cairo] Cairo 1.9.2 performance

cu cairouser at yahoo.com
Wed Jun 17 18:27:30 PDT 2009

This is what I am doing now. However, I think that a library that is
expected to be relatively high-performance should have at least basic
compiler optimization options set by default. This is particularly true
for gcc which is not known to produce blazingly fast code anyway, much
less so at O0.

What makes this more difficult is that while build for 1.8.6 shows
compiler options, 1.9.2 hides them behind generic output ("compiling
blah.c"), leaving user essentially in the dark about any optimization
that may be done.

Dominic Lachowicz wrote:
>> Incidentally, I also found that default Makefiles as created by
>> configure for cairo do not include any optimization options (i.e.
>> CXXFLAGS contains -O3 but this does not propagate into the actual
>> compile options). Adding -O3 to compile options for 1.8.6 increased
>> cairo drawing speed by about 30% (260ms vs 450ms for the same dataset,
>> nice :) ). I don't know if this is by design - but perhaps it is worth
>> making -O3 the default build option.
> The typical way to do this is to specify different CFLAGS to configure. Eg.
> CFLAGS="-O3" ./configure --prefix=/opt
> _______________________________________________
> cairo mailing list
> cairo at cairographics.org
> http://lists.cairographics.org/mailman/listinfo/cairo

More information about the cairo mailing list