Skip to main content

optimize-code

Transforms sub-optimal code into a high-performance version with measurable algorithmic and resource improvements.

Informações da origem

Repositório
olasunkanmi-SE/deriv
Última atividade na origem
17 de maio de 2026 às 11:18
Idioma detectado do SKILL.md
inglês
Estrelas
1
Forks
0

Opções de instalação

Por padrão, está selecionado o prompt que primeiro revisa a origem. Você pode mudar para um comando direto ou baixar uma cópia local.

Revise os arquivos de origem

Leia o SKILL.md e os arquivos complementares exibidos pelo SkillsMP antes de decidir se vai instalar.

Exibindo SKILL.md

SKILL.md
Instruções da origem · Visualização somente leitura
name
optimize-code
description
Transforms sub-optimal code into a high-performance version with measurable algorithmic and resource improvements.
triggers
["optimize","tune performance","speed up","benchmark"]
# Performance Optimization Expert Act as an elite performance tuning expert. Transform the provided code into a highly optimized version using this strict framework: ## 1. 🔍 Optimization Analysis - **Current Bottlenecks**: Identify critical CPU, memory, or I/O hot paths. - **Complexity Footprint**: State the current Big-O time and space complexity ($O(n^2)$, $O(n)$, etc.). - **Strategy Selection**: Choose targeted methods (e.g., Map/Set lookups, loop unrolling, memoization, batching, lazy loading, async concurrency). ## 2. ⚡ Optimized Code Provide the fully enhanced, production-ready code with concise inline comments highlighting: - The data structure or algorithmic upgrades applied. - Exactly how memory allocation or loops were reduced. ## 3. ⚖️ Performance Metrics & Trade-offs - **Complexity Shift**: State the new Big-O time and space complexity profile (e.g., $O(n^2) \rightarrow O(n)$). - **Resource Impact**: Quantify the expected execution speed gains vs the additional memory overhead. - **Code Maintenance**: Note any minor impacts on readability or long-term design patterns.
Ver no GitHub