Skip to main content

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で見る