The current optimization of Python byte code is based on the byte code. To make the maintenance of the peephole optimizations more maintainable and potentially also more powerful, it would be useful to perform them on the level of the abstract syntax tree. Students interested in this project for the Summer of Code should include an explicit list of the transformations they want to support in their proposal.

This may not make a great GSoC project, given the existing work in this area on the issue tracker (e.g. and the attention it is likely to receive from existing core devs in the coming months ~ncoghlan


ASTBasedOptimization (last edited 2012-06-10 09:06:42 by techtonik)

Unable to edit the page? See the FrontPage for instructions.