Closed Bug 2091042 Opened 20 days ago Closed 19 days ago

Embed the first pending promise reaction into the promise itself, rather than allocating for it.

Categories

(Core :: JavaScript Engine, task)

task

Tracking

()

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: mgaudet, Assigned: mgaudet)

References

(Blocks 1 open bug)

Details

(Keywords: perf-alert)

Attachments

(5 external files)

What it says on the tin :)

Assignee: nobody → mgaudet
Status: NEW → ASSIGNED

Initialize pending and settled reactions on the stack before choosing
their representation. Pending reactions now collect host data and apply
extraStep before allocating their reaction record.

Most pending promises only ever get one reaction, so instead of allocating a
PromiseReactionRecord for it, store it in two new reserved slots of the
promise (plus REACTIONS_OR_RESULT_SLOT and the promise flags) when its fields
fit. At settlement, enqueue it inline if eligible, otherwise inflate it into
a reaction record. Code that needs the reaction list representation (a second
reaction, the debugger) first moves it into a reaction record.

Perfherder has detected a browsertime performance change from push 4e0406852cf019fc803a9599cacc7967d1a8c253.

No action is required from the author; this comment is provided for informational purposes only.

Improvements Test Platform Options Absolute values [old vs new] Performance Profiles
31% jetstream3 doxbee-promise-Geometric (doc) windows11-64-24h2-shippable fission webrender 92.24 score -> 121.21 score
21% jetstream3 doxbee-promise-First (doc) windows11-64-24h2-shippable fission webrender 50.31 ms -> 39.59 ms
19% jetstream3 doxbee-promise-Worst (doc) macosx1500-aarch64-shippable fission webrender 47.19 ms -> 38.42 ms
11% jetstream3 doxbee-promise-Geometric (doc) android-hw-a55-14-0-aarch64-shippable fission webrender 36.93 score -> 41.07 score
6% jetstream3 async-fs-Geometric (doc) macosx1500-aarch64-shippable fission webrender 137.09 score -> 144.81 score
... ... ... ... ... ...
5% jetstream3 doxbee-async-Average (doc) macosx1500-aarch64-shippable fission webrender 18.87 ms -> 17.93 ms

Need Help or Information?

If you have any questions, please reach out to aesanu@mozilla.com. Alternatively, you can find help on Slack by joining #perf-help, and on Matrix you can find help by joining #perftest.

Details of the alert can be found in the alert summary, including links to graphs and comparisons for each of the affected tests.

Keywords: perf-alert

Perfherder has detected a devtools performance change from push 61519993ac138b81f5b8df14a080200b60b2ef78.

No action is required from the author; this comment is provided for informational purposes only.

Improvement Test Platform Options Absolute values [old vs new]
14% reload-webconsole:parent-process objects-with-stacks linux2404-64-shippable 89.62 -> 77.33

Need Help or Information?

If you have any questions, please reach out to aesanu@mozilla.com. Alternatively, you can find help on Slack by joining #perf-help, and on Matrix you can find help by joining #perftest.

Details of the alert can be found in the alert summary, including links to graphs and comparisons for each of the affected tests.

This devtools performance change is for push 4e0406852cf019fc803a9599cacc7967d1a8c253

QA Whiteboard: [qa-triage-done-c163/b162]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: