Closed
Bug 1615236
Opened 5 years ago
Closed 5 years ago
Parallelize target creation in the target list helper
Categories
(DevTools :: Framework, task, P3)
DevTools
Framework
Tracking
(firefox75 fixed)
RESOLVED
FIXED
Firefox 75
Tracking | Status | |
---|---|---|
firefox75 | --- | fixed |
People
(Reporter: jdescottes, Assigned: jdescottes)
References
Details
Attachments
(1 file)
Follow up to Bug 1605763
Today the target list is using for () { await }
in several spots, and we are adding a few more. When connecting to many targets this means we will need to wait for each target to sequentially initialize, and each consumer callback to be executed.
I tested the current stack from Bug 1605763 with the MBT against a session of 40 tabs (on rather heavy pages), and measured the time to open the MBT + display the Console (with messages rendered)
- without the patches here, it takes 13 seconds
- with the patches, it takes 11 seconds
- with a patch to use Promise.all in target-list, it takes 3 seconds (although it was without waiting for the onAvailable callbacks, which was added as a requirement in Bug 1605763)
Assignee | ||
Comment 1•5 years ago
|
||
Assignee | ||
Updated•5 years ago
|
Component: Console → Framework
Pushed by jdescottes@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/68f4d9219d3f
Parallelize target creation in the target list helper r=ochameau
Comment 3•5 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
status-firefox75:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 75
You need to log in
before you can comment on or make changes to this bug.
Description
•