Closed Bug 1876227 Opened 2 years ago Closed 2 years ago

JS demo (https://www.fxhash.xyz/generative/slug/selva-oscura-i) is 3x slower in Nightly

Categories

(Core :: JavaScript Engine, task, P3)

task

Tracking

()

RESOLVED FIXED
124 Branch
Tracking Status
firefox124 --- fixed

People

(Reporter: mayankleoboy1, Assigned: anba)

References

(Blocks 1 open bug, )

Details

Attachments

(1 file)

Severity: -- → N/A
Priority: -- → P3

Based on the script source code and the profile, which has js::jit::IonSetPropertyIC::update as the hottest function, I guess the script first reads an out-of-bounds value on a TypedArray (this is the undefined value) and then writes undefined into the TypedArray again. SetPropIRGenerator::tryAttachSetTypedArrayElement currently only handles numeric inputs, so undefined goes into the VM call slow path.

Assignee: nobody → andrebargull
Status: NEW → ASSIGNED
Flags: needinfo?(mayankleoboy1)
Flags: needinfo?(mayankleoboy1)
Pushed by andre.bargull@gmail.com: https://hg.mozilla.org/integration/autoland/rev/337ba87df12d Support non-number inputs when assigning to TypedArray elements. r=jandem
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 124 Branch

Latest profile (2.5s): https://share.firefox.dev/3ScvgvX

There is 3.6x improvement here and we are faster than the competition. Thanks :anba!

Regressions: 1877684
See Also: → 1877684
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: