performance · diff
git:20260320.bfbf3af to v5.0.0
16 added, 6 removed. Audit A to A.
---
name: performance
- description: "[OPTIMIZE:auto|startup<2s|response<1s|RAM<100MB]"
+ description: Optimize for speed and cost. Pick lightweight solutions. Flag expensive operations.
+ version: 5.0.0
---
- [APPLY:during-build|auto=true]
- startup=<2s|page-load=<1s|API=<200ms|RAM=<100MB
- bundle=minimize|lazy-load=true|cache=static-assets
- db=use-indexes+avoid-N+1|images=compress+WebP+lazy
- [IF:significant-improvement]=>[SAY:"我优化了一下,页面打开速度从3秒降到0.8秒了。"]
+
+ ::GENE{performance|conf:confirmed|scope:global}
+ T:lightweight_first
+ T:flag_expensive_operations
+ T:lazy_load_when_possible
+ T:cache_when_repeated
+ A:premature_optimization⇒ship_first
+ A:ignore_obvious_bottleneck⇒flag
+
+ ::ACTIVATE{performance}
+ ON:build_complete
+ ON:performance_issue_detected
+
+ Powered by I-Lang v3.0 | ilang.ai