From parseltongue
Profiles Python code for performance bottlenecks and memory issues using cProfile, line profiling, and memory profiling. Use when Python code is slow or before a release.
How this skill is triggered — by the user, by Claude, or both
Slash command
/parseltongue:python-performanceThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Profiling and optimization patterns for Python code.
Profiling and optimization patterns for Python code.
# Basic timing
import timeit
time = timeit.timeit("sum(range(1000000))", number=100)
print(f"Average: {time/100:.6f}s")
Verification: Run the command with --help flag to verify availability.
This skill is organized into focused modules for progressive loading:
CPU profiling with cProfile, line profiling, memory profiling, and production profiling with py-spy. Essential for identifying where your code spends time and memory.
Eleven proven optimization patterns including list comprehensions, generators, caching, string concatenation, data structures, NumPy, multiprocessing, database operations, and loop transformations (what works in Python vs the compiler).
Memory optimization techniques including leak tracking with tracemalloc and weak references for caches. Depends on profiling-tools.
Benchmarking tools including custom decorators and pytest-benchmark for verifying performance improvements.
Best practices, common pitfalls, and exit criteria for performance optimization work. Synthesizes guidance from profiling-tools and optimization-patterns.
npx claudepluginhub athola/claude-night-market --plugin parseltongueProfiles and optimizes Python code using cProfile, timeit, memory profilers, and best practices for bottlenecks, slow execution, high memory, and latency.
Profiles and optimizes Python code using cProfile, memory profilers, and best practices for CPU, memory, I/O, and database performance.
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.