Nightly spends tons of time around MinorGC on an online JSON-to-HTML converter. Chrome spends far less time.
Categories
(Core :: JavaScript Engine, task, P3)
Tracking
()
People
(Reporter: mayankleoboy1, Unassigned)
References
(Depends on 1 open bug, Blocks 2 open bugs, )
Details
Attachments
(2 files)
Go to https://www.textcompare.org/json/json-to-html/
Paste the sample JSON into the input box
Click on "Process"
Nightly: https://share.firefox.dev/47fhBKD
Chrome: https://share.firefox.dev/3G3d1mZ
The difference may not look that big in these profiles with a relatively small (8MB) input JSON file. With a larger JSON (28MB), Nightly basically spend 2minutes+ in GC before I got tired and quit. Chrome completed the task in ~40 seconds.
Profile with a 28MB JSON:
Nightly : https://share.firefox.dev/47f5Wvr (GC heavy part takes 85s+)
Chrome: https://share.firefox.dev/3QVl3o5 (GC heavy part is 26s)
The caveat being that this is probably an edge use-case.
Reporter | ||
Updated•1 year ago
|
Reporter | ||
Comment 1•1 year ago
|
||
Reporter | ||
Comment 2•1 year ago
|
||
Reporter | ||
Updated•1 year ago
|
Comment 3•1 year ago
|
||
We're spending a lot of time tracing stack roots under string-split. Maybe something quadratic where we append more and more strings to the vector and GC while allocating new strings?
Updated•1 year ago
|
Updated•1 year ago
|
Comment 4•1 year ago
|
||
(In reply to Mayank Bansal from comment #0)
I can see what the problem might be, but I couldn't reproduce the this with the steps given. Is it still happening?
Reporter | ||
Updated•1 year ago
|
Reporter | ||
Comment 5•1 year ago
|
||
you are right, I cant repro either. I ran bisection 3 times, and this is what it gave:
- https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=7c63a9afa9648007a6ae98a90d09bb3cd2b45cba&tochange=97f2e0f6b821072bc498a3bc7921831eb6d10d38 which would point to bug 1869242
OR - bug 1855301
I am inclined to give credit to bug 1869242. Feel free to change if you disagree.
Reporter | ||
Comment 6•1 year ago
|
||
The cc spends 10s+ : https://share.firefox.dev/42yUHMP but thats a different bug.
Description
•