Open Bug 2015309 Opened 7 months ago Updated 7 months ago

Modified codepen demo (https://codepen.io/shubniggurath/pen/RNaWvdm?editors=0010) is slower in Firefox

Categories

(Core :: JavaScript Engine, task, P3)

task

Tracking

()

People

(Reporter: mayankleoboy1, Unassigned)

References

(Blocks 1 open bug, )

Details

Go to https://codepen.io/shubniggurath/pen/RNaWvdm?editors=0010
In the js-pane, change the following:

gridSize = 50 -----> gridSize = 1
Let it recompile and run.

Firefox: https://share.firefox.dev/4rA9l1D / https://share.firefox.dev/3MiaA6L
Chrome: https://share.firefox.dev/4bHGML3

Biggest thing that stands out is we're spending significantly more time doing Set.add in the query function (23% of our profile, vs 4% of V8's). Bug 2015006 is a case of Map.add being slower, which is a similar code path.

Still not clear that this is a high priority in the real world, but we should keep an eye on it.

Severity: -- → N/A
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.