Closed Bug 1901215 Opened 1 year ago Closed 6 months ago

Opening a large array is very slow

Categories

(DevTools :: JSON Viewer, defect, P3)

defect

Tracking

(firefox146 fixed)

RESOLVED FIXED
146 Branch
Tracking Status
firefox146 --- fixed

People

(Reporter: florian, Assigned: florian)

References

(Blocks 1 open bug, Regressed 1 open bug)

Details

(Keywords: perf:responsiveness)

Attachments

(1 file)

I initially opened bug 1901204 (see the steps to reproduce there) and put it in the accessibility component as a11y code was responsible for 74% of the CPU time, but with a11y force-disabled, this is still slower than it should be. Here's a profile with a11y disabled: https://share.firefox.dev/3XcyTWQ

If this can't be made (much) faster, should the behavior used in the devtools console (where large arrays will be divided in multiple sections) be adopted instead?

It seems styles and reflows are extremely long. We do have a scrollable container in the json-viewer which might slow down things.
Let's first try to see if we can update the styles to make this faster, if not we should use buckets as in the console.

Severity: -- → S3
Priority: -- → P3
Duplicate of this bug: 1949796
Assignee: nobody → florian
Status: NEW → ASSIGNED
See Also: → 1363222
Status: ASSIGNED → RESOLVED
Closed: 6 months ago
Resolution: --- → FIXED
Target Milestone: --- → 146 Branch
Regressions: 2006867
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: