Open Bug 1954006 Opened 2 months ago Updated 1 month ago

Testcase generating N Wekref objects is 4x slowr and uses 4x more RAM.

Categories

(Core :: JavaScript Engine, task, P3)

task

Tracking

()

People

(Reporter: mayankleoboy1, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Attached file Generate Weakrefs.HTML

Open attached testcase
N=5000000
Firefox: https://share.firefox.dev/41RHA9y (12s, 1.2GB)
Chrome: https://share.firefox.dev/3RfqDAV (3.5s, 300mb)

Testcase is extremely artificial. No ides if performance of Weakrefs is important.

27% of time spent in JS::Zone::traceKeptObjects. We could implement this using a generation count rather than an explicit set which is what I think JSC does. I'm not sure why the memory use is so much higher.

Profile with JS and Native memory tracking if it helps: https://share.firefox.dev/3XT4Z9o

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

Attachment

General

Creator:
Created:
Updated:
Size: