next up previous contents
Next: 5.4.1 Let Optimization Up: 5 Advanced Compiler Use Previous: 5.3.6 Type Check Optimization

5.4 Source Optimization

   

This section describes source-level transformations that Python does on programs in an attempt to make them more efficient. Although source-level optimizations can make existing programs more efficient, the biggest advantage of this sort of optimization is that it makes it easier to write efficient programs. If a clean, straightforward implementation is can be transformed into an efficient one, then there is no need for tricky and dangerous hand optimization.





Raymond Toy
Mon Jul 14 09:11:27 EDT 1997