Profile and optimize Python code using cProfile, memory profilers, and performance best practices. Use when debugging slow Python code, optimizing bottlenecks, or improving application performance.
npx mdskills install sickn33/python-performance-optimization@sickn33? Sign in with GitHub to claim this listing.Well-scoped optimization guide but lacks specific profiling instructions and examples
1---2name: python-performance-optimization3description: Profile and optimize Python code using cProfile, memory profilers, and performance best practices. Use when debugging slow Python code, optimizing bottlenecks, or improving application performance.4---56# Python Performance Optimization78Comprehensive guide to profiling, analyzing, and optimizing Python code for better performance, including CPU profiling, memory optimization, and implementation best practices.910## Use this skill when1112- Identifying performance bottlenecks in Python applications13- Reducing application latency and response times14- Optimizing CPU-intensive operations15- Reducing memory consumption and memory leaks16- Improving database query performance17- Optimizing I/O operations18- Speeding up data processing pipelines19- Implementing high-performance algorithms20- Profiling production applications2122## Do not use this skill when2324- The task is unrelated to python performance optimization25- You need a different domain or tool outside this scope2627## Instructions2829- Clarify goals, constraints, and required inputs.30- Apply relevant best practices and validate outcomes.31- Provide actionable steps and verification.32- If detailed examples are required, open `resources/implementation-playbook.md`.3334## Resources3536- `resources/implementation-playbook.md` for detailed patterns and examples.37
Full transparency — inspect the skill content before installing.