Open Bug 2097312 Opened 9 days ago Updated 9 days ago

Provide a responsive preview for large XML documents

Categories

(Core :: XML, enhancement)

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.

Attached file bounded-fixture.xml —
See Also: → 1921956
Performance Impact: --- → ?
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: