600ms are spent inside Schemas.jsm during startup
Categories
(WebExtensions :: General, defect, P3)
Tracking
(Not tracked)
People
(Reporter: mstange, Unassigned)
References
(Depends on 2 open bugs, Blocks 1 open bug)
Details
(Whiteboard: [geckoview:p2])
Profile: https://perfht.ml/2PMN7tS
In this profile of Fenix app link startup (see instructions) from a Moto G5, around 600ms are spent inside Schemas.jsm in the parent process, and another 160ms in the content process.
This is extension stuff, so moving there.
Comment 3•4 years ago
|
||
Everything related to performance we have been optimizing in the last couple of years has been in deferring doing this work as late as possible for the common case, which is "no installed extensions" or at least "no content script in the first/every tab needing to wake up the background page (early)". However, my understanding is that Fenix is currently using several extensions, with content scripts in every page, for specific browser features like favicons.
We don't have fix for this in the short term, so the general advice of avoiding/delaying any extensions code running on startup should be attempted here as well.
Additionally, Luca is currently exploring converting our binding to webidl for the purposes of background service workers (manifest v3) in bug 1609923, but that's very much a long-term project.
Updated•1 year ago
|
Description
•