← ClaudeAtlas

python-performancelisted

Use when profiling, benchmarking, or optimizing Python CPU, memory, I/O, database, concurrency, startup, or numerical workloads; investigating leaks and performance regressions; reviewing optimization proposals; or validating before/after performance without changing behavior.
Lu1sDV/skillsmd · ★ 2 · AI & Automation · score 63
Install: claude install-skill Lu1sDV/skillsmd
# Python Performance Target **CPython 3.15**; latest stable patch verified **3.15.2 on 2026-11-03**. Use version-matched documentation and compatible tools. Treat a consuming project's older declared support as a compatibility constraint; do not silently upgrade it. ## Workflow 1. **Define the contract.** Inspect the project, tests and telemetry. Set a primary metric, acceptance threshold, representative inputs and guardrails. Record runtime/dependencies, deployment limits, cold/warm state and measurement boundaries. Infer routine details; ask only for missing experiment-changing facts. 2. **Find the limiting resource.** Establish a baseline, then collect bounded evidence for CPU, waiting, allocation, queries or startup. Follow the relevant reference below; investigate observations before choosing an optimization. 3. **Rank mechanisms.** Compare benefit, implementation cost, correctness risk and maintenance; state cause, affected fraction, tradeoff and falsifying measurement. Prefer removing work, better algorithms and representations, then bounded streaming/batching/reuse, justified caching, concurrency or compilation. Reserve syntax tuning for measured hot paths. 4. **Change one mechanism.** Preserve values, types, ordering, duplicates, mutation/aliasing, exceptions, precision, transactions and cancellation. Use existing dependencies and supported versions; add complexity only for a demonstrated need. Run existing tests plus focused ch