Analisa uma codebase para avaliar a velocidade de execução, a eficiência algorítmica e o uso de recursos, oferecendo sugestões concretas de otimização.
You are an expert code performance analyst.
Analyze the provided codebase: {{Codebase: if used in an AI agent use the current project}}
Focus primarily on: {{Focus Area: All, Execution Speed, Algorithmic Efficiency, Resource Usage, I/O Operations}}
Follow these steps:
1. **Initial Review:**
- Identify the programming language(s) used.
- Summarize the code’s purpose and architecture.
2. **Performance Profiling:**
- Point out sections that may cause slow runtime (e.g., nested loops, inefficient I/O, blocking operations).
- Estimate time and space complexity for core functions.
3. **Optimization Opportunities:**
- Suggest concrete, language-specific improvements (e.g., caching, vectorization, async operations).
- Include sample refactored snippets when helpful.
4. **Efficiency Metrics:**
- If possible, estimate the performance gain of each proposed change.
- Suggest profiling tools or benchmarking methods relevant to the detected language.
5. **Summary Report:**
- Provide a prioritized list of changes with rationale.
- End with a brief summary of expected improvements.
Provide the output detail level as: {{Output Detail: High, Medium, Low}}
Return your findings in structured markdown with clear headings:
**Overview**, **Findings**, **Optimization Suggestions**, and **Summary**.
Guia do prompt
Ideal para
Começar a partir de um prompt estruturado e reutilizável em vez de um chat em branco.
Adaptar o prompt aos seus próprios dados, mantendo intacta a intenção original.
Fluxos de trabalho relacionados com Software Development, Debug & Testing.
Como usar
Copie o modelo de prompt completo.
Substitua cada variável pelo seu próprio contexto ou escolha uma das opções sugeridas.
Cole o prompt concluído no ChatGPT, Claude, Gemini ou outro assistente de IA.
Variáveis neste prompt
Codebase
if used in an AI agent use the current project
Focus Area
All, Execution Speed, Algorithmic Efficiency, Resource Usage, I/O Operations
Output Detail
High, Medium, Low
Exemplo de ponto de partida
You are an expert code performance analyst.
Analyze the provided codebase: if used in an AI agent use the current project
Focus primarily on: All
Follow these steps:
1. **Initial Review:**
- Identify the programming language(s) used.
- Summarize the code’s purpose and architecture.
2. **Performance Profiling:**
- Point out sections that may cause slow runtime (e.g., nested loops, inefficient I/O, blocking operations).
- Estimate time and space complexity for core functions.
3. **Optimization Opportunities:**
- Suggest concrete, language-specific improvements (e.g., caching, vectorization, async operations).
- Include sample refactored snippets when helpful.
4. **Efficiency Metrics:**
- If possible, estimate the performance gain of each proposed change.
- Suggest profiling tools or benchmarking methods relevant to the detected language.
5. **Summary...
Como funcionam as variáveis
Sintaxe das variáveis
As variáveis ficam entre {{ e }} e seguem este padrão:
{{variable name: option1, option2, option3}}
Variáveis predefinidas
Uma seleção pode fazer referência a uma lista de variáveis predefinida usando colchetes. Aparecem em [laranja] e fornecem valores comuns, como cores, tons ou idiomas.
{{Tone: [tones]}}
Listas de seleção personalizadas
Também pode fornecer uma lista de opções em linha, separadas por vírgulas.
Dica: não precisa da app PUCO para usar estes prompts! Basta copiar o modelo e substituir cada secção {{…}} pelo seu próprio texto diretamente no ChatGPT, Claude, Gemini ou qualquer outro assistente de IA.
Prompts relacionados
Code Refactoring Assistant
Analyzes and refactors code to improve performance, readability, and adherence to best practices.
Anticipate Critical Teacher Questions About My Work
Generates tough examiner-style questions with model answers that a critical teacher or reviewer might ask about a project thesis or topic in any subject including software projects.