hfshfg
f715aef9c9
perf(portable): U盘启动加速 — 缓存搬本机 + 启动首屏 + 首轮预热
便携版从 U 盘启动慢,瓶颈在 U 盘随机小写 IO + 首屏无反馈 + 首轮冷启动。
移植 v2 u-clawx 4.0 的 4 个可在纯脚本层复刻的手段(均零依赖、静默失败):
- portable-cache.mjs: 把浏览器 user-data(几百 MB 随机小写)+ V8 编译缓存
从 U 盘搬到本机 SSD(win junction / mac symlink 重定向 .openclaw/browser,
NODE_COMPILE_CACHE 落本机)。UUID 隔离让换盘符仍命中同一份缓存。
业务数据(openclaw.json/memory/账号)仍留 U 盘,便携性不变。
- loading.html: 双击即弹的启动首屏,自轮询 /ready,gateway 真就绪后自动跳
Dashboard——天然规避"gateway 没起就开 Dashboard 拒连"(issue #46/#48)。
- prewarm.mjs: gateway 首轮预热,后台静默唤醒 config/model 子系统。
- Windows-Start.bat: 等 config-server 改写死 timeout 为动态轮询 18788。
- wait-gateway.bat 退居兜底(首屏页负责主跳转)。
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-17 16:38:05 +08:00
..
2026-06-17 11:47:19 +08:00
2026-06-17 16:38:05 +08:00
2026-06-15 12:27:13 +08:00
2026-06-17 11:47:19 +08:00
2026-03-10 22:10:28 +08:00
2026-03-14 17:37:00 +08:00
2026-03-12 14:02:53 +08:00
2026-03-14 17:37:00 +08:00
2026-06-15 12:27:13 +08:00
2026-06-17 16:38:05 +08:00
2026-06-17 11:47:19 +08:00
2026-06-15 12:27:13 +08:00
2026-05-30 12:58:01 +08:00
2026-05-02 17:07:42 +08:00
2026-06-17 12:02:48 +08:00
2026-03-12 11:18:43 +08:00
2026-04-09 22:05:09 +08:00
2026-03-12 18:50:55 +08:00
2026-04-01 09:31:16 +08:00
2026-05-19 14:30:34 +08:00
2026-06-15 12:29:45 +08:00
2026-06-17 16:38:05 +08:00