optimize-code
Transforms sub-optimal code into a high-performance version with measurable algorithmic and resource improvements.
소스 정보
- 저장소
- olasunkanmi-SE/deriv
- 최근 소스 활동
- 2026년 5월 17일 11:18
- 감지된 SKILL.md 언어
- 영어
- 스타
- 1
- 포크
- 0
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
SKILL.md 표시 중
SKILL.md
소스 지침 · 읽기 전용 미리보기- 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.
GitHub에서 보기