Closed Bug 1281490 Opened 8 years ago Closed 2 years ago

JSON Viewer slow when opening large arrays.

Categories

(DevTools :: JSON Viewer, defect, P3)

49 Branch
defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1363222

People

(Reporter: gregtatum, Unassigned)

References

Details

STR:

* Open https://quake.bethesda.net/assets/static/three-logo/Q.json
* Open the faces node.

Expected Behavior:
* It should only load the first 100 or so children, and have a button to show more like in the console.

Actual Behavior:
* The browser hangs for a long time as it tries to add all the nodes.
* Eventually it completes.
Has Regression Range: --- → irrelevant
Has STR: --- → yes
Product: Firefox → DevTools
No activity, moving to the backlog (P3)
Honza
Priority: P2 → P3
The initial test case seems to be gone. A new test case is available at https://bug1159078.bmoattachments.org/attachment.cgi?id=9032091.

I see two solutions:
1. Limit the output. (Not sure whether limiting to a specific number of nodes works, depends on whether the contents of the nodes are only displayed when it's expanded.)
2. Only display the output in raw form when the size of the response exceeds a specific size. (The output may be truncated if it's too long, but I guess that's rather covered in bug 1159078.)

Sebastian
Severity: normal → S3

This looks like a duplicate of bug 1363222, can we close this one in favor of that?

Flags: needinfo?(odvarko)

Yes, I think we can close this report (it's the same underlying issue).

Again, thank you for helpin with the JSON Viewer, Zachary!

Honza

Status: NEW → RESOLVED
Closed: 2 years ago
Flags: needinfo?(odvarko)
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.