perf(web): skip unchanged incremental web builds
Some checks failed
M6 deployable RC / quick (push) Has been cancelled
M6 deployable RC / chromium (push) Has been cancelled
M6 deployable RC / release (push) Has been cancelled

This commit is contained in:
mes123456
2026-09-06 10:46:53 +08:00
parent 6090995999
commit ed347098b4
5 changed files with 107 additions and 2 deletions

View File

@@ -23,6 +23,9 @@
- Emscripten 环境、无人值守启动器和原生构建入口统一使用自适应并行度,避免在高配机器上固定 `-j8` 或 `-j2`。
- `web/tsconfig.json` 开启增量图和 `.cache/tsconfig.tsbuildinfo`,使独立
`typecheck` 与后续 `build` 共享 TypeScript 解析结果。
- `npm run typecheck` 和 `npm run build` 使用源码/配置指纹。指纹未变化且
构件存在时输出 `web-typecheck-reused`/`web-build-reused`,不重复启动
TypeScript 或 Vite;任一输入变化都会自动回到完整增量构建路径。
- 调度器状态显示为 WASM 构件增加 `bytes + mtime_ns` 指纹缓存;未变化时不再重复读取并计算 SHA-256。
- 状态页从既有收据计算并显示当前阶段中位数最高的观测瓶颈,便于下一轮只调整真正耗时的阶段。