530 B
530 B
Python Performance Profiling
Stub: This module will be populated when Python profiling is needed in a project. Follow the pattern established in go.md.
Expected Content
- Toolchain:
py-spy,cProfile,memory_profiler,line_profiler,scalene - Patterns:
__slots__, generator expressions,collections.deque,numpyvectorization - Benchmarking:
timeit,pytest-benchmark - Irreducible floors: GIL contention, interpreter overhead, C extension boundaries
- Script:
scripts/python-pyspy.sh