Closed Bug 1615236 Opened 4 years ago Closed 4 years ago

Parallelize target creation in the target list helper

Categories

(DevTools :: Framework, task, P3)

task

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)
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
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 75
See Also: → 1621234
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: