Performance Optimization
Profiling (cProfile, py-spy), escape analysis intuition, Cython/numba, vectorization.
Why we need this / what value this brings
Guessing at performance fixes wastes more time than profiling first — this is the discipline that prevents that.
When to use this
Before any performance-motivated rewrite; profile first, always.
How to use or implement this
py-spy for production-safe sampling profiling, cProfile locally, numpy vectorization before reaching for Cython.
Research questions
- (add as research surfaces open questions)
Empty folder — drop notes, links, and findings here as you research.