python-performance-optimization - Profile and optimize Python performance
Profile Python code, analyze CPU and memory usage, and apply optimization techniques to reduce bottlenecks and improve application performance.
Tags
Updated: 2026-10-08Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Profile CPU usage
- Measure execution time
- Analyze memory usage
- Identify performance bottlenecks
- Optimize algorithms and data structures
- Reduce memory consumption
- Optimize I/O and database queries
- Benchmark implementation alternatives
Inputs
- Python source code
- Application workload
- Performance profiling targets
Outputs
- Profiling statistics
- Performance measurements
- Profile output files
- Optimization recommendations
- Optimized Python code
Requirements
- Python runtime
- Optional profiling tools
- Required optimization libraries
