py-performance-tuning

Installation
SKILL.md

Python Performance Tuning

Optimization should always follow measurement. This skill focuses on a data-driven approach to making Python go fast.

The Performance Loop

  1. Measure: Profile with cProfile or Pyinstrument.
  2. Analyze: Identify bottlenecks (CPU-bound vs. I/O-bound).
  3. Optimize: Apply targeted fixes.
  4. Verify: Re-profile to confirm gains.

Optimization Strategies

  • Vectorization: Use NumPy/Pandas to replace explicit loops.
  • Just-in-Time (JIT): Use Numba for numerical heavy-lifting.
  • Compiled Extensions: Write performance-critical modules in Cython or Rust (PyO3).
  • Algorithmic Fixes: Check O(n) complexity before micro-optimizing.
Installs
1
GitHub Stars
1
First Seen
Jun 29, 2026
py-performance-tuning — jcorpac/ai-skills-library