Profile and optimize Python code performance with cProfile and line_profiler.
Profile and optimize my Python code: ```python [PASTE YOUR CODE] ``` Performance concerns: - Current runtime: [TIME] - Target runtime: [TARGET] - Hot spots: [SUSPECTED AREAS] Provide: 1. cProfile analysis 2. line_profiler for line-by-line 3. timeit for micro-benchmarks 4. py-spy for production profiling 5.…
Premium Prompt
Unlock this prompt — and all 30,000+ expert-crafted prompts — with Pro.
Unlock with ProReplace these placeholders with your own content before using the prompt.
[PASTE YOUR CODE][TIME][TARGET][SUSPECTED AREAS]