Back to list
Silviase

refactoring-09-performance-profiling

by Silviase

0🍴 0📅 Jan 15, 2026

SKILL.md


name: refactoring-09-performance-profiling description: Use when profiling and making small performance improvements in Python research code.

Refactoring 09: Performance and Bottlenecks

Goal

Find hotspots with profiling and apply small, safe optimizations.

Sequence

  • Order: 09
  • Previous: refactoring-08-experiment-tracking
  • Next: refactoring-10-security-privacy

Workflow

  • Reproduce a slow path with a small, representative dataset.
    • Success: A repeatable slow case is identified.
  • Profile with a basic tool (cProfile, pyinstrument, or line_profiler).
    • Success: Hotspots are measured and recorded.
  • Apply minimal fixes (vectorization, caching, avoiding repeated IO).
    • Success: Targeted code changes are implemented.
  • Re-measure and record before/after metrics.
    • Success: Performance improvement is quantified.
  • Keep optimizations local and reversible.
    • Success: Changes are isolated and easy to revert.

Guardrails

  • Avoid algorithm changes unless requested.
  • Do not optimize without measurements.
  • Keep performance work separate from refactor-only changes.

Score

Total Score

50/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon