About
The Python Performance Optimization skill provides an extensive toolkit for identifying and resolving bottlenecks in Python code. It enables developers to perform deep CPU and memory profiling, analyze execution patterns, and implement high-efficiency patterns such as vectorization with NumPy, advanced caching with LRU, and memory-saving techniques like __slots__. Whether you are debugging slow production systems, reducing latency in web APIs, or streamlining data processing pipelines, this skill provides the domain-specific guidance needed to choose the right profiling tools and implementation strategies to minimize resource consumption and maximize execution speed.