Open Bug 1871704 Opened 6 months ago Updated 5 months ago

JS demo (https://www.fxhash.xyz/generative/221020) is 50% slower in Nightly

Categories

(Core :: JavaScript Engine, task, P3)

task

Tracking

()

People

(Reporter: mayankleoboy1, Unassigned)

References

(Blocks 1 open bug, )

Details

Taking a quick look at this, we are spending a bunch of time in array_push, and our hottest JS function (buildNonNativeLine) has dozens of calls to Array.prototype.push with more than one argument. We only optimize the one-argument case in CacheIR.

With a bit of work we could add CacheIR support for two-argument array_push (although it might require some ugly register juggling on 32-bit x86). I'm not sure how useful that would be outside of this testcase, though. I also doubt it would get us to parity here.

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