Steven D'Aprano wrote: > On Sat, 15 Nov 2008 01:27:54 am Daniel Furrer wrote: > [snip] >> We're looking for: >> - Hints as to which python compiler would be best to work on. (The >> official Python compiler package seems very nice to work with >> actually...) - If there are any requests in the area of optimization >> that we could have a look at > > Even though the PEP has been rejected, I do like the idea of optimising > chains of if...elif: > > http://www.python.org/dev/peps/pep-0275/
As a side note: Cython does this optimisation and translates a series of if-else statements (as well as "or" expressions) into C switch statements. The speedup is pretty impressive at times. Stefan _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com