Open Bug 1853845 Opened 1 year ago Updated 7 days ago

JS demo is 3x slower in Nightly compared to Chrome

Categories

(Core :: JavaScript Engine, task, P3)

task

Tracking

()

People

(Reporter: mayankleoboy1, Unassigned)

References

(Blocks 2 open bugs, )

Details

Go to https://hextoryworld.github.io/TiledProceduralHexTerrainGenerator/
Click on Grid
Set the row and column to 50
Click apply
Click on Redraw

Nightly: https://share.firefox.dev/48iE4rf (5 seconds)
Chrome: https://share.firefox.dev/3RyLoZI (1.8 seconds)

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

Latest profile: https://share.firefox.dev/4dXHJ0k (4s)

For fun, here is a profile for a 100x100 grid:
Nightly: https://share.firefox.dev/3Y2dOi1 (76s in JS heavy part)
Chrome: https://share.firefox.dev/3LngI9H (31s in JS heavy part)

Glancing briefly at the profile, it looks like we are failing to inline some calls to Array.forEach. Array.indexOf might also be relevant.

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