Optimising Python
28th October 2003
Some great tips for optimising Python, courtesy of Ian Bicking:
- Kata 19: an optimization anecdote demonstrates some neat techniques including use of the gc module to fine tune garbage collection.
- Python Patterns—An Optimization Anecdote mainly uses functional programming techniques and the array module.
- An Optimization Anecdote from Fredrik Lundh teaches us that the more time is spent by Python in pure C routines, the faster code will run (note that this does not necessarily imply rewriting Python code in C).
- Python Performance Tips from 1996, most of which look like they are still valid.
- Python optimization tips, which seem to be a bit more up to date.
More recent articles
- Notes from my appearance on the Software Misadventures Podcast - 10th September 2024
- Teresa T is name of the whale in Pillar Point Harbor near Half Moon Bay - 8th September 2024
- Calling LLMs from client-side JavaScript, converting PDFs to HTML + weeknotes - 6th September 2024