Open Bug 1958410 Opened 17 days ago Updated 4 days ago

[meta] Never block the parent process main thread for more than 5ms at a time, during applink startup

Categories

(Core :: Performance Engineering, task)

task

Tracking

()

People

(Reporter: mstange, Unassigned)

References

(Depends on 4 open bugs, Blocks 2 open bugs)

Details

(Keywords: meta)

To speed up applink startup (bug 1945906), the number one priority is to kick off the web request to the server for the applink URL as early as possible, and to consume the data it sends back immediately. At the moment, this requires bouncing a lot of coordination work through the parent process main thread, via various runnables, see e.g. bug 1956964 and bug 1956967.

Moving the networking stuff off the main thread is the right long term fix.

In the shorter term, we should find workarounds. This bug is about one such workaround: Make sure that the main thread does not delay any network runnable by more than 5ms, by making sure that no runnable / task / "macrotask" hogs the thread for more than 5ms at a time.


The currently known main offenders during applink startup are (times from https://share.firefox.dev/43ySyn1 ):

Depends on: 1960922
You need to log in before you can comment on or make changes to this bug.