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

PyInstrument Usage

Related skills

More from wdm0006/python-skills

Installs
25
GitHub Stars
32
First Seen
Jan 24, 2026