Help us improve
Share bugs, ideas, or general feedback.
From parseltongue
Profiles Python code for bottlenecks using cProfile and py-spy, applies optimization patterns like generators and NumPy, tunes memory with tracemalloc, and benchmarks with pytest-benchmark.
npx claudepluginhub athola/claude-night-market --plugin parseltongueHow 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.
Profiles 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. Use for debugging slow code, bottlenecks, CPU/memory issues, and app 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.
Share bugs, ideas, or general feedback.
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.
Ten proven optimization patterns including list comprehensions, generators, caching, string concatenation, data structures, NumPy, multiprocessing, and database operations.
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.
Command not found Ensure all dependencies are installed and in PATH
Permission errors Check file permissions and run with appropriate privileges
Unexpected behavior
Enable verbose logging with --verbose flag