-
Notifications
You must be signed in to change notification settings - Fork 347
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: optimize scoped storage bootstrap speed #1997
refactor: optimize scoped storage bootstrap speed #1997
Conversation
Codecov ReportBase: 57.44% // Head: 57.44% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #1997 +/- ##
=======================================
Coverage 57.44% 57.44%
=======================================
Files 1289 1289
Lines 80695 80700 +5
Branches 16880 16880
=======================================
+ Hits 46352 46356 +4
- Misses 31221 31223 +2
+ Partials 3122 3121 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
bb320a8
to
8dc3b9a
Compare
8dc3b9a
to
739d801
Compare
/publish |
🎉 PR Next version 2.21.6-next-1669195469.0 publish successful! You can install prerelease version via
/home/runner/work/_temp/_runner_file_commands/step_summary_d438ce7e-ac79-4f3e-825b-6d75ef2a2933 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Types
Background or solution
优化 ScopedStorage 冷启动速度,不再依赖
workspaceService.whenReady
逻辑,框架内启动速度提升约 50%Before:
After:
同时修改 Terminal 恢复逻辑,采用
ScopedBrowserStorageService
进行浏览器存储管理。局部浏览器缓存路径从
scoped:file:///...:/recent
修改为scoped:/....:/recent
移除了多余的file://
,该修改会导致用户首次加载新版本时进入冷启动逻辑(字段改动导致之前的缓存失效),影响不大。Changelog
optimize scoped storage bootstrap speed