[Pixman] Compute flags at validation time instea

Benjamin Otte otte at redhat.com
Mon Mar 1 06:29:38 PST 2010

On Mon, 2010-03-01 at 15:44 +0200, Siarhei Siamashka wrote:
> Also "Restructure the code to use switches instead of ifs" part probably may
> have uncertain effect on performance. Optimization manuals say that ifs are
> generally faster than switches when one of the cases has much higher
> probability than the others.
As that code is not performance-relevant - it's run only once pafter
setting properties on an image - clarity is way more important than
speed for this particular case.

Also, doesn't gcc tend to compile switch statements into ifs in a lot of
cases anyway?


More information about the Pixman mailing list