Open Bug 1805045 Opened 2 years ago Updated 2 years ago

Codepen demo (https://codepen.io/Mertl/full/GRJOgjL) is slower than Chrome

Categories

(Core :: JavaScript Engine, task, P2)

task

Tracking

()

People

(Reporter: mayankleoboy1, Unassigned)

References

(Blocks 1 open bug)

Details

This one doesn't load for me?

Based on the profile they're using scripted getters on the global I think. I can try to write a patch to optimize that similar to native getters, but it would be nice to verify.

Flags: needinfo?(jdemooij)

(In reply to Jan de Mooij [:jandem] from comment #1)

This one doesn't load for me?

To load the page, do a full/force reload (Ctrl+shift+r). See bug 1800575

(In reply to Mayank Bansal from comment #2)

To load the page, do a full/force reload (Ctrl+shift+r). See bug 1800575

Thanks! That fixed it.

Depends on: 1805199
Blocks: sm-runtime
Severity: -- → N/A
Priority: -- → P2

Mayank, did bug 1805199 improve this bug and bug 1805612 for you?

Flags: needinfo?(mayankleoboy1)

Profile with latest Nightly: https://share.firefox.dev/3Yu6p9c

Flags: needinfo?(mayankleoboy1)

Chrome is visually smoother

Does setting javascript.options.use_fdlibm_for_sin_cos_tan = true make any difference for you? We seem to spend a fair amount of time in cos.

This looks pretty smooth for me on Mac and based on the profile we fixed the lowest-hanging fruit. It will be easier to analyze this more when we have JIT code information in the profiler, hopefully soon.

Flags: needinfo?(jdemooij)

(In reply to Jan de Mooij [:jandem] from comment #7)

Does setting javascript.options.use_fdlibm_for_sin_cos_tan = true make any difference for you? We seem to spend a fair amount of time in cos.

Profile: https://share.firefox.dev/3FBTIAu

No longer blocks: sm-runtime
You need to log in before you can comment on or make changes to this bug.