[Python-Dev] compiler optimizations: collecting ideas (original) (raw)
Stefan Behnel stefan_ml at behnel.de
Fri Nov 14 19:24:46 CET 2008
- Previous message: [Python-Dev] compiler optimizations: collecting ideas
- Next message: [Python-Dev] compiler optimizations: collecting ideas
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-Dev] compiler optimizations: collecting ideas
- Next message: [Python-Dev] compiler optimizations: collecting ideas
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]