Performance

These pages cover Python performance – both practical tips for writing faster code and historical efforts to speed up the CPython interpreter itself. Some of this content dates back to specific sprints and projects from the mid-2000s, so treat the historical pages as context rather than current advice. The general performance tips, though, hold up well.

Performance Tips and Techniques

  • Python Speed – collected resources on making Python code run faster

  • Python Speed – overview of Python performance characteristics and optimization strategies

Profiling

Interpreter Optimization Projects