-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
beachball/perf hit after importing many tabs from muon #2374
Comments
Ran into the same thing when going through the case @LaurenWags mentioned in Slack. macOS Results: For the above example, I imported Windows 10 x64 Results: Because the Windows 10 x64 machine is a lot more powerful than the macOS (MBP), |
We should be importing all the tabs but only load them once a user focuses on a particular tab. Basically the same thing we do when restoring sessions. This will mitigate the above issues for users who might be importing a lot of tabs/windows. Even though the above examples are extreme cases, anyone with a moderate amount of tabs will run into these performance issues while we're loading tabs. |
Verified passed with
Went through verification using the following build under
Verification passed on
Verification Passed on
|
Description
Found while testing #998
If you have a bunch of tabs on muon (I used 4 windows with 100ish tabs per window), and import those to b-c, you'll see that the import completes as expected. However, after getting the completion box, I beachballed for a bit and then my CPU went up and my laptop fans kicked on. It looks like all tabs are attempting to load at once.
This only happens after the import. Subsequent launches of Brave do not have this problem (tabs aren't loaded until you click on them).
Steps to Reproduce
Actual result:
See beachball and then notice CPU go up as all tabs attempt to load at once.
Expected result:
No CPU increase, would be nice if maybe tabs were lazy loaded/staggered on load.
Reproduces how often:
easily
Brave version (brave://version info)
Reproducible on current release:
Website problems only:
Additional Information
cc @rebron @garrettr @bsclifton @kjozwiak
The text was updated successfully, but these errors were encountered: