-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[HOLD for payment 2023-11-30] [HOLD for payment 2023-11-01] Refactor heavy operations when user starts to type as main thread hangs on 4x and 6x cpu throttling #28359
Comments
Triggered auto assignment to @kevinksullivan ( |
Bug0 Triage Checklist (Main S/O)
|
@mountiny Can you assign this to me ? |
I've posted another proposal that resolves this issue, but instead of creating new onyxKey, I rely on existing onyxKey, but with changed onyx selectors. Moreover I've changed |
Thanks! |
I will keep this open for @hurali97 to add the further improvements |
|
Had ro be reverted for regression and next week we can address that |
@mountiny, @muttmuure, @hurali97, @robertKozik Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Not overdue |
I believe we had to revert the PR @hurali97 would you be able to create it again and address the regression there? |
@hurali97 Any update on this one? Thanks! |
@mountiny, @muttmuure, @hurali97, @robertKozik Whoops! This issue is 2 days overdue. Let's get this updated quick! |
2 similar comments
@mountiny, @muttmuure, @hurali97, @robertKozik Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@mountiny, @muttmuure, @hurali97, @robertKozik Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Asking if someone else can help here |
I am taking a look at this ! |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.2-3 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2023-11-30. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
For reference, here are some details about the assignees on this issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
Performance improvement handled by agencies, can close |
coming from here
Proposal
Refactor heavy operations when user starts to type as main thread hangs on 4x and 6x cpu throttling
Problem
As soon as the user starts to type, the main thread gets blocked for a noticeable amount of time and user can’t perform any other action. The reason the main thread gets blocked is due to heavy JS operations. Using Chrome’s profiler on new HT accounts, we can see that there are many pieces that comes together and halts the main thread. Details of them are below:
## Solution
There’s a lot going on in only on initial letter typing. To get near to an ideal performance, I tried to apply the following solutions to fix the above findings:
If we look at before and after results, we save about 400 milliseconds 👏
Testing Environment:
Web at 6x CPU throttling on profiling build with production mode
Macbook M1 Pro
Note:
I haven’t tested this on Mobile and Desktop platforms, so this should also be tested when implementing this proposal.
The text was updated successfully, but these errors were encountered: