Provide a responsive preview for large XML documents
Categories
(Core :: XML, enhancement)
Tracking
()
| Performance Impact | ? |
People
(Reporter: plawless, Unassigned)
References
Details
Attachments
(2 files)
Opening a large XML document to inspect its markup can still make Firefox unresponsive after the pretty-printing guard in bug 1921956 takes effect. The guard skips building the formatted viewer tree. Firefox still builds the source XML DOM and lays it out as unformatted content.
In a local optimized build, a bounded 616 KB fixture with 48,002 nodes retained about 8.3 MB of source DOM and 10 MB of layout and frame memory after the guard fired. Reflow accounted for 82 of 175 active samples on the content main thread, compared with 26 samples under XML parsing.
Explore a source preview that preserves the markup for inspection and renders only the visible portion. Start by avoiding full-document layout. If retaining the source DOM remains a significant cost, evaluate an explicit preview mode that can read the source without building the full tree while preserving the behavior of ordinary XML navigation.
Compare the preview with the guarded fallback on bounded fixtures of increasing size. Measure time to first usable display, main-thread stalls, and peak content-process memory. Verify that users can inspect markup beyond the initial viewport.
| Reporter | ||
Comment 1•9 days ago
|
||
| Reporter | ||
Comment 2•9 days ago
|
||
| Reporter | ||
Updated•9 days ago
|
Description
•