python-performance-optimization - Profile and optimize Python performance
Profile Python code, identify performance bottlenecks, and apply CPU, memory, algorithm, and implementation optimizations.
Tags
Updated: 2026-10-08Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Measure execution time
- Profile CPU usage
- Track memory allocation
- Analyze line performance
- Visualize call graphs
- Identify bottlenecks
- Optimize data structures
- Reduce memory consumption
- Optimize I/O operations
- Benchmark implementation changes
Inputs
- Python source code
- Python application
- Profiling target process
- Benchmark workloads
Outputs
- Profiling statistics
- Memory usage reports
- Performance benchmarks
- Call graphs
- Optimized Python code
- Profile output files
Requirements
- Python runtime
- Required profiling tools
- Permission to profile target processes
- Optional NumPy installation
