About
This skill provides a comprehensive toolkit for profiling, analyzing, and optimizing Python applications to ensure peak performance. It guides users through the entire optimization lifecycle, from identifying CPU and memory bottlenecks with tools like cProfile and py-spy to implementing low-level performance patterns like generator expressions and __slots__. Whether you are debugging a slow production API, reducing the memory footprint of a data pipeline, or accelerating numerical computations with NumPy, this skill provides the domain-specific best practices and implementation patterns needed to build lightning-fast Python software.