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? Benjamin _______________________________________________ Pixman mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/pixman
