Optimizing code


  1. Problems
  2. Optimization strategy
  3. Locate the source of the problem
  4. Optimizing tactics
  5. Profile code
  6. Slow example
  7. profile slow code
  8. profile (with hotshot) slow code
  9. cProfile slow code
  10. Benchmarking
  11. Benchmarking subs
  12. Exercise: sort files