技巧精选

Codex技能分析代码库复杂度,给出优化建议

codex for improving computational complexity

精选理由

一键扫描代码复杂度热点

AI 摘要

Kappaemme发布了Codex技能"codex-complexity-optimizer",可扫描代码库中的计算复杂度热点。该工具检测O(n²)循环、O(n*m)重复查找、N+1查询模式等性能瓶颈。提供前后复杂度估算和安全优化建议,默认报告模式不修改代码。通过npx --yes codex-complexity-optimizer一键安装,完全开源。

原文 · Greg Brockman

codex for improving computational complexity

codex for improving computational complexity Kappaemme @Kappaemme1926 CODEX SKILL THAT FINDS COMPLEXITY HOTSPOTS IN YOUR CODEBASE! I made a Codex skill that analyzes your codebase and reports where performance can be improved safely. Scan your project while Codex checks loops, repeated lookups, render-heavy code, N+1 patterns, and places where complexity can potentially be reduced without breaking behavior. -> codebase complexity analysis -> O(n²), O(n*m), repeated scan detection -> before/after complexity estimates -> safe optimization suggestions -> risk level + tests needed -> report-only mode by default -> one-command install Install: npx --yes codex-complexity-optimizer 100% open source. Repo in Bio. Your browser does not support the video tag. 🔗 View on Twitter 🔗 View Quoted Tweet 💬 18 🔄 8 ❤️ 87 👀 7908 📊 24 ⚡

Codex技能分析代码库复杂度,给出优化建议 · AI 热点