Improving Performance - Optimizing code

  1. Problems
  2. Optimization strategy
  3. Locate the source of the problem
  4. Optimizing tactics
  5. DSU: Decorate Sort Undecorate
  6. Profile code
  7. Slow example
  8. profile slow code
  9. cProfile slow code
  10. Benchmarking
  11. Benchmarking subs
  12. Levenshtein distance
  13. Generate words
  14. Levenshtein - pylev
  15. Levenshtein - editdistance
  16. Editdistance benchmark
  17. A Tool to Generate text files
  18. Count characters
  19. Memory leak
  20. Garbage collection
  21. Weak reference
  22. Exercise: benchmark list-comprehension, map, for
  23. Exercise: Benchmark Levenshtein
  24. Exercise: sort files
  25. Exercise: compare split words:
  26. Exercise: count words