性能优化

原名:performance-optimization

优化前端、后端、查询和数据库的应用性能。适用于存在性能需求、疑似性能回退、需改善核心网页指标或加载时间、修复 N+1 查询模式,或性能分析发现瓶颈的场景。

分类
开发提效
版本
v1.0.0
作者
徐涵(@useraaypt5)
下载
1
收藏
0
发布
2026-08-08
更新
2026-08-14
TRACE 评分
3.6 / 5

内容概览

Measure before optimizing. Performance work without measurement is guessing — and guessing leads to premature optimization that adds complexity without improving what matters. Profile first, identify the actual bottleneck, fix it, measure again. Optimize only what measurements prove matters. - Performance requirements exist in the spec (load time budgets, response time SLAs) - Users or monitoring report slow behavior - Core Web Vitals scores are below thresholds - You suspect a change introduced a regression - Building features that handle large datasets or high traffic When NOT to use: Don't optimize before you have evidence of a problem. Premature optimization adds complexity that costs more than the performance it gains. Metric Good Needs Improvement Poor -------- ------ ------------------- ------ LCP (Largest Contentful Paint) ≤ 2.5s ≤ 4.0s 4.0s INP (Interaction to Next Paint) ≤ 200m…

查看 SKILL 详情