Open Bug 1847675 Opened 1 year ago Updated 1 year ago

Codepen demo (https://codepen.io/cantelope/pen/OJaqjxd) is visually very slow in Nightly compared to Chrome

Categories

(Core :: JavaScript Engine, task, P3)

task

Tracking

()

People

(Reporter: mayankleoboy1, Unassigned)

References

(Blocks 1 open bug, )

Details

Attachments

(1 file)

Attached file Standalone_Unreduced_testcase.html (deleted) —
Severity: -- → N/A
Priority: -- → P3

Seems like a huge amount of time being spent in a self-hosted next call generated as part of array spread

            sparks = [];
            spawnSparks = (X, Y) => {
              sparks = [...sparks, [X, Y, 1]];
            };

Our current approach for optimizing this depends on inlining the next call. It looks from the profile like that didn't happen here. I think the iterator-related work we're considering might help here.

The code in question would ideally be rewritten as sparks.push([X,Y,1]), which would be easier to optimize and create less garbage.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: