Open Bug 1630939 Opened 5 years ago Updated 22 hours ago

URLDecorationAnnotationsService started very early during startup (profile-after-change)

Categories

(Core :: Privacy: Anti-Tracking, defect, P3)

defect

Tracking

()

Performance Impact low
Tracking Status
firefox77 --- affected

People

(Reporter: Gijs, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: perf:startup)

Splitting this discussion out of bug 1626935.

It seems the url decoration annotation service gets created relatively early during startup (profile-after-change for the decoration service courtesy of https://searchfox.org/mozilla-central/rev/567b68b8ff4b6d607ba34a6f1926873d21a7b4d7/toolkit/components/antitracking/antitracking.manifest#1).

This is work that does not seem to be required on startup. There was some concern in bug 1626935 about syncing things - but I'm pretty sure remote settings won't do a sync in the middle of startup no matter how early we call the RemoteSettings constructor - it runs off the remote settings sync timer, which is an update timer, and those shouldn't be running in the middle of startup. In terms of the sync behaviour, AFAICT it does not care whether that particular client has been instantiated during that run - it'll update anything it's ever heard of, and create clients as necessary ( https://searchfox.org/mozilla-central/rev/567b68b8ff4b6d607ba34a6f1926873d21a7b4d7/services/settings/remote-settings.js#300-306 ).

If the pageload of fb.com from session restore should block on getting the contents of this DB from disk into memory, then that should probably be implemented more explicitly (ie the channel should not finish with AsyncOpen until we have the data) - right now I don't think there's any guarantee that it will be complete by the time we start making network requests.

Blocks: 1630949
Whiteboard: [fxperf] → [fxperf:p2]
Priority: -- → P3
Severity: -- → S3
Performance Impact: --- → P2
Keywords: perf:startup
Whiteboard: [fxperf:p2]

The classifier delays we're seeing in the current (Fenix) startup scenario are primarily captured in bug 1956920, bug 1956923, bug 1984478, and bug 1933562 so we're demoting the perf-impact on this one to low for now.

Performance Impact: medium → low
You need to log in before you can comment on or make changes to this bug.