Closed Bug 1729458 Opened 3 years ago Closed 3 years ago

Make process switches take fewer trips through the event loop

Categories

(Core :: DOM: Content Processes, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
94 Branch
Fission Milestone MVP
Tracking Status
firefox-esr78 --- disabled
firefox-esr91 --- disabled
firefox92 --- disabled
firefox93 --- wontfix
firefox94 --- fixed

People

(Reporter: nika, Assigned: nika)

References

(Blocks 1 open bug, Regressed 1 open bug)

Details

Attachments

(3 files)

No description provided.

This makes a couple of changes, including removing the call to
AppendNativeHandler from the constructor, and using the nullable nature of
std::function instead of wrapping them in Maybe.

The main advantage of this change, however, is that it no longer acquires a
reference to this during the constructor, which could be unsafe.

Attachment #9239842 - Attachment description: Bug 1729458 - Make process switches take fewer trips through the event loop, r=smaug → Bug 1729458 - Part 2: Make process switches take fewer trips through the event loop, r=smaug
Pushed by nlayzell@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b8db01010657 Part 1: Simplify DomPromiseListener, r=smaug,rpl https://hg.mozilla.org/integration/autoland/rev/42b3a9930fe0 Part 2: Make process switches take fewer trips through the event loop, r=smaug

Backed out 2 changesets (Bug 1729458) for causing leaks in ClientManagerService.
Backout link: https://hg.mozilla.org/integration/autoland/rev/08affc9cf11251a185568043323f2e2bf9e2dd65
Link with failures, failure log.

Flags: needinfo?(nika)
Pushed by nlayzell@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/704dd03288b1 Part 1: Simplify DomPromiseListener, r=smaug,rpl https://hg.mozilla.org/integration/autoland/rev/72b7a9c7bf30 Part 2: Make process switches take fewer trips through the event loop, r=smaug https://hg.mozilla.org/integration/autoland/rev/16b385e15fad Part 3: Clean up future client sources during shutdown, r=asuth
Regressions: 1730541

Patches are too big to uplift. Perf improvement is expected to be small.

Flags: needinfo?(nika)
Pushed by nlayzell@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/05ca4bd50219 Part 1: Simplify DomPromiseListener, r=smaug,rpl https://hg.mozilla.org/integration/autoland/rev/63edcdef3b68 Part 2: Make process switches take fewer trips through the event loop, r=smaug https://hg.mozilla.org/integration/autoland/rev/151359d48f18 Part 3: Clean up future client sources during shutdown, r=asuth
Regressions: 1427811
Regressions: 1731243
Flags: needinfo?(nika)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: