I did some experiments with this, and the results seemed to indicated  
it does not. Also, nested ifs performed poorly compared to a flat  
list of ifs (for a medium-sized (5-50) set of conditions).

It would be nice to have some syntax for switch statements. Several  
alternatives have been rejected for Python: http://www.python.org/dev/ 
peps/pep-3103/

- Robert

On Mar 12, 2008, at 11:32 AM, Simon Burton wrote:

> Does anyone know if gcc can optimise a switch done with nested if's  
> as well as it optimises a real switch ? (eg. using computed-gotos)
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to