Open Bug 1804426 Opened 2 years ago Updated 2 years ago

Codepen demo (https://codepen.io/Mertl/pen/oNXmgmy?editors=0010) is slower than Chrome

Categories

(Core :: JavaScript Engine, task, P3)

task

Tracking

()

People

(Reporter: mayankleoboy1, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Attached file Standalone_testcase.html (deleted) —
Flags: needinfo?(jdemooij)

This profile doesn't look too unreasonable. There is quite a lot of time in/under str_includes, it would be nice to optimize this function with CacheIR similar to what we did for indexOf.

There's also some overhead from the recursion check in ToStringForStringFunction, I'll file a bug for that.

Severity: -- → N/A
Flags: needinfo?(jdemooij)
Priority: -- → P3
Depends on: 1806608

Profile from latest Nightly: https://share.firefox.dev/3WZ5Xy5 . Visually, the patches didnt have much impact on the speed of the demo.
(ni :jandem to make sure they see the profile)

Flags: needinfo?(jdemooij)

That makes sense; bug 1806608 was just a minor improvement.

This needs more work to optimize String.prototype.includes from JIT code. There may also be other opportunities in JIT code, but that will be easier to investigate when we have that integrated better with the profiler.

Flags: needinfo?(jdemooij)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: