Commit dd42253
committed
feat(profile): 优化启动性能,精简核心模块并延长代理缓存
- 精简核心模块同步加载列表:Windows 移除 test 和 env 模块,Linux/macOS 仅移除 test 模块
- 延长代理自动检测缓存 TTL 从 5 分钟至 30 分钟,减少冷启动频率
- 将 PSReadLine Tab 键绑定注册移至 OnIdle 延迟执行,避免触发模块冷启动
- 缓存 starship continuation prompt 输出,消除每次启动的子进程调用
- 更新性能诊断脚本以保持与 profile 逻辑一致1 parent 0ca2c1f commit dd42253
17 files changed
Lines changed: 139 additions & 15 deletions
File tree
- openspec
- changes/archive
- 2026-02-12-profile-init-perf-phase2
- specs
- profile-perf-diagnostics
- psreadline-deferred-init
- starship-continuation-cache
- 2026-02-12-profile-loadmodule-slim
- specs
- profile-perf-diagnostics
- psutils-deferred-loading
- specs
- profile-perf-diagnostics
- psreadline-deferred-init
- psutils-deferred-loading
- starship-continuation-cache
0 commit comments