Closed Bug 1949796 Opened 1 year ago Closed 8 months ago

Opening a big array is very slow in the json viewer

Categories

(DevTools :: JSON Viewer, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1901215

People

(Reporter: julienw, Unassigned)

Details

Here is a profile: https://share.firefox.dev/41rPszR
I didn't wait until the end of the freeze as it's very very long. I guess we could shorten it with a smaller array, this one has more than 168k items.

The same operation with the same json object in the web console is much faster: https://share.firefox.dev/3EKlA8W

Thanks for the report Julien.
We spend too much time in React rendering the array's items.
Like in the console, we could have some bucketting to avoid rendering too much at once.
Or we could have some fancier virtualization.

Severity: -- → S3
Priority: -- → P2
Status: NEW → RESOLVED
Closed: 8 months ago
Duplicate of bug: 1901215
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.