修复[dev]下agc启动时长时间白屏 #333
Reference in New Issue
Block a user
Delete Branch "boot-time-diagnosis"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
closes #324
当前瓶颈在 apps/ai-game-creator-shell/src-tauri/src/runner/protocol.rs:170 的整文件 SHA-256。Debug 二进制约 795 MiB,单次 hash 实测约 19 秒;GUI 启动时父进程和 Runner 子进程各 hash 一次,所以产生 32–43 秒启动时间。
fix:
把 sha digest 构建改成 opt-level = 3, 降低启动时间到1到2秒
飞一样的感觉

<< Code review finished >>
The Cargo profile overrides are valid and apply to the sha2 and digest dependencies in debug builds. The project builds and tests compile successfully with the optimized dependency settings.
Worked for 10m 31s