Open
Bug 1807070
Opened 3 years ago
Updated 3 years ago
[Snap] nsIShellService.isDefaultBrowser is slow and called 3 times during startup
Categories
(Core :: Widget: Gtk, defect, P3)
Tracking
()
NEW
| Performance Impact | low |
People
(Reporter: florian, Unassigned)
References
(Blocks 1 open bug)
Details
(Keywords: perf, perf:startup, reproducible)
Here is a startup profile https://share.firefox.dev/3WEiAyp where we see that nsIShellService.isDefaultBrowser is called 3 times during startup, and is pretty slow. It blocks the main thread while it launches another process.
Could we cache the result? Could we launch this process off main thread earlier during startup and keep the information for when we do need it on the main thread? Do the callers really need this information?
Comment 1•3 years ago
|
||
The child process is fired when running in Snap sandbox so it's not general Linux issue.
Blocks: snap
Priority: -- → P3
Comment 2•3 years ago
|
||
Here we call it:
https://searchfox.org/mozilla-central/rev/0907529ff72c456ddb47839f5f7ba16291f28dce/browser/components/shell/nsGNOMEShellService.cpp#179
Summary: nsIShellService.isDefaultBrowser is slow and called 3 times during startup → [Snap] nsIShellService.isDefaultBrowser is slow and called 3 times during startup
Updated•3 years ago
|
Performance Impact: --- → ?
Updated•3 years ago
|
Performance Impact: ? → low
Keywords: reproducible
You need to log in
before you can comment on or make changes to this bug.
Description
•