Closed Bug 1816222 Opened 1 year ago Closed 1 year ago

JS demo spends a lot of time in JS (However, Nightly is faster than Chrome)

Categories

(Core :: JavaScript Engine, task, P5)

task

Tracking

()

RESOLVED WONTFIX

People

(Reporter: mayankleoboy1, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

See attached testcase.

Nightly: https://share.firefox.dev/3DYUJCu

I have filed this in case there is anything obviously slow here, or there are any low-hanging fruits.
But since Nightly is faster than Chrome here, I would say this is a low priority/WONTFIX/INVALID etc.

Attached file index.html
Severity: -- → S4
Priority: -- → P5

The algorithm for constructing the maze can certainly be optimized by doing something completely different, and computing a tree of connected areas, where zones are being connected to one another by removing walls which are at the boundary between areas.

The current algorithm is most likely O(n²) as it will iterate over unreachable blocks to connect them to one another. Thus showing up in the profile.

So, not a benchmark of interest from my point of view.

Blocks: sm-runtime
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: