Open Bug 1530479 Opened 6 years ago Updated 1 year ago

Convert more parts of browser_startup.js to an allow list

Categories

(Firefox :: General, enhancement, P3)

enhancement

Tracking

()

Performance Impact low

People

(Reporter: Felipe, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: perf:startup)

Attachments

(2 files)

As I was filing bug 1530478, I thought "why wasn't this caught by browser_startup.js?", and it turns out it's because that's still a blacklist: [1]

We should try to convert at least the "before opening first browser window" and "before first paint" parts to whitelist as we're doing a large effort of improving startup perf.

[1] https://searchfox.org/mozilla-central/rev/b10ae6b7a50d176a813900cbe9dc18c85acd604b/browser/base/content/test/performance/browser_startup.js#54

Priority: -- → P3
Blocks: 1522877
Whiteboard: [fxperf] → [fxperf:p2]

(p2 rather than p1 because per the discussion in the meeting I wonder if we should do more work here to actually reduce the pile of JSMs, before making this change)

Indeed, the list is very large. Here's just all the modules that the test report as open before opening the first window. There are 108 modules.

(note: these modules could have been loaded during that step or the earlier steps.. I didn't filter that)

Blocks: 1543096
No longer blocks: 1522877
Blocks: 1563044
No longer blocks: 1543096
Attached patch whitelist.diffSplinter Review

mandycheang started looking at this, but is halting work to focus on school stuff, so attaching her WIP here.

Summary: Convert more parts of browser_startup.js to a whitelist → Convert more parts of browser_startup.js to an allow list
Assignee: nobody → bigiri
Assignee: bigiri → nobody
Performance Impact: --- → P3
Keywords: perf:startup
Whiteboard: [fxperf:p2]
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: