- Category
- Code & Dev
- Model
- anthropic-claude
Optimize Code for Performance
Identify performance bottlenecks and improve code for speed, memory usage, and scalability.
By Threads — Published on — Modified on
Prompt template
- Format
- Text Parameterized
- Inputs
- code_and_context (code, text) · Required
- Outputs
- performance_analysis_and_optimized_code (text, code)
Replace the ${…} placeholders with your values
before using this prompt. See parameters
and defaults below.
Think like a performance engineer optimizing this code. Optimize for speed, memory usage, and scalability. Find bottlenecks, inefficient logic, and unnecessary rendering.
Provide:
- Performance issues
- Optimization strategies
- Improved code
Code and relevant performance context:
${code-and-context}
Parameters
Replace each placeholder with your own value, or use its default when one is provided.
${code-and-context}
code-and-context
Required
Comments — 0