Open
Conversation
- `frontend/src/main/backend.ts`: 添加健康检查选项,优化健康检查逻辑 - `frontend/src/main/index.ts`: 移除不必要的后端启动检查 - `frontend/externals/python/window_capture/requirements.txt`: 修复依赖项格式
…uce startup latency Goal: eliminate PyInstaller onefile extraction overhead during app startup and improve perceived launch speed. Changes: - /Users/zhuyizhou/MineContext/opencontext.spec: use EXE(exclude_binaries=True) + COLLECT to output onedir backend runtime. - /Users/zhuyizhou/MineContext/frontend/scripts/copy-prebuilt-backend.js: copy full /dist/main onedir runtime into frontend/backend. - /Users/zhuyizhou/MineContext/frontend/electron-builder.yml: include all backend runtime files (not only main/config) in extraResources. - /Users/zhuyizhou/MineContext/build.sh and /Users/zhuyizhou/MineContext/build.bat: verify onedir output path and update run hints. Performance impact (based on 20s progress baseline): - Cold start now reaches app at ~13% => ~2.6s (from 20s), about 87% reduction (~7.7x faster). - Second start now reaches app at ~6% => ~1.2s (from 20s), about 94% reduction (~16.7x faster).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
修改内容:
本地测试:
Mac机器可流畅打包构建并启动,实现大幅加速。
#338