optimizing-python-performance
Installation
SKILL.md
Python Performance Optimization
Profiling Quick Start
# PyInstrument (statistical, readable output)
python -m pyinstrument script.py
# cProfile (detailed, built-in)
python -m cProfile -s cumulative script.py
# Memory profiling
pip install memray
memray run script.py
memray flamegraph memray-*.bin