-
Notifications
You must be signed in to change notification settings - Fork 378
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
fix: Move persistence layer's delta computation into worker #5563
Conversation
I can see the perf gain here, just one more question, do we know why after moving to worker, we still take about 10ms? |
The worker.postMessage will take some time here, postMessage its own will do some clone algorithm. I tried to use JSON.stringify our data, but looks like the JSON.stringify will take more time. |
This is awesome work @lei9444 ! Moving it a worker is so much better. |
* main: Update numberinput.dialog (#5575) fix hover display incorrect returntype (#5588) fix: Move persistence layer's delta computation into worker (#5563) fix: electron update error (#5573) fix: showing correct error message in local publish (#5509) feat: change source of packages from local feed to live npm/nuget feed (#5516) set max http header size to fix 431 (#5521) Updating to daily runtime for R12 development (#5529) fix: correctly generate l10n files when using zsh (#5555) chore: deprecate feature request issue template (#5378) fix: designPage navigation to settings Page url error (#5546) fix: luis\qna key missing in skill bot (#5545) delete trigger by projectId passed from projectTree (#5542)
…t#5563) * fix: Move persistence layer's delta computation into worker * fix unit testsa * fix tests * fix tests * add test coverage * update naming Co-authored-by: Dong Lei <donglei@microsoft.com>
Description
The persistence layer will check files' change after the state changed. When we use a big bot such as the calendarSkill, the check function will block the main thread about 90ms every notify.
fix
Move the complex computation to worker
Task Item
closes #5561
Screenshots
before:

after:
