Closed Bug 1616421 Opened 6 years ago Closed 6 years ago

First page load is slower in Fenix when extensions are installed

Categories

(GeckoView :: Extensions, defect, P1)

Unspecified
All
defect

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: agi, Assigned: agi)

Details

(Whiteboard: [geckoview:m75])

Need to attach a profile, but I keep forgetting so I'm opening a bug at least.

:csadilek mentioned this to me and I've seen it too, the first pageload when ublock is enabled in Fenix is really slow, we should look at it and see what we can do about it.

Profiles:

No ublock: https://perfht.ml/2SZhjTf
With ublock: https://perfht.ml/2P5p6Ow

Looks like this is due uBlock using localStorage in the background script at startup time which causes us to wait synchronously for disk before performing the first network request.

Can you add the IPDL Background thread to your list of profiled threads, and also enable the ipcmessages profiler feature? That might let us see what exactly is happening during that pause.

There you go! https://perfht.ml/2PblvOW

(let me know if there's anything else that can help there)

Flags: needinfo?(mstange)
Assignee: nobody → agi
Priority: -- → P1
Whiteboard: [geckoview:m75]

The performance fix has been resolved in uBlock 1.5.2, and I don't see any indication that we're actually slower than Fenix on this particular case, so I'm going to resolve this.

Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WORKSFORME
Flags: needinfo?(mstange.moz)
You need to log in before you can comment on or make changes to this bug.