3

syncThrobberAnimations takes a lot of time at startup when there are many tabs

 3 months ago
source link: https://bugzilla.mozilla.org/show_bug.cgi?id=1869928
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Details

I'm attaching a saved session with 1000 tabs. To use:

  • Check the "Open previous windows and tabs" checkbox in about:preferences and quit the browser
  • Copy in the attached sessionstore-1000-tabs.jsonlz4 file into the profile directory and rename it sessionstore.jsonlz4 (don't use a valuable profile, or back up your sessionstore-backups folder if you do.)
  • Start the browser. It will probably hang for a few seconds while it reads the session file and creates all those tabs

I captured this profile starting up with this. It shows several seconds spent in syncThrobberAnimations. Which is odd because only the selected tab (and any pinned tabs) should be actively loading. The function tries to get the animations from each and every tab and then loops over them to sync all their startTimes. I think we filter for only the tabs that newTab.hasAttribute("busy").


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK