Skip to content

qt_quick: mounting a 2,000 x 300 document table does not finish within 300 s #1132

Open

Description

@Yaraslaut

What happens

Mounting a document table of 2,000 literal rows × 300 columns on the Qt Quick backend (Interpreter::mount) does not finish within 300 s. The table is above the virtualization threshold, so only a window of rows is realized; parsing the same document takes under a second.

Measured (reproduced, weak on the cause)

On c1da94b0 (branch feat/table-pending-cells), MSVC Release, Qt 6.8.3, QT_QPA_PLATFORM=offscreen, software scene graph, morph_qt_quick_tests "[.benchmark][baseline]" (the step-0 frontend baseline, tests/qt_quick/bench_qt_quick_table.cpp), with a watchdog that names each step and ends the process when a step passes its budget:

qt quick baseline: mount: the document's text (budget 120 s)
qt quick baseline: 'mount: the document's text' took 0.4 s
qt quick baseline: mount: parse (budget 300 s)
qt quick baseline: 'mount: parse' took 0.8 s
qt quick baseline: mount: interpreter mount (budget 300 s)
qt quick baseline: FAILED: 'mount: interpreter mount' ran past its 300 s budget

The document is the wide-table fixture's 2,000 rows (seed 7) as {"lit": [...]} rows of 300 cells, 300 sortable columns, "sizing": {"lit": {"height": {"stretch": 1}}}, in a 1,280 × 800 window.

Weak points, stated plainly:

  • The host (Windows Server 2025, EPYC 7763, 128 logical processors) is shared with CI builds and was 80–90% busy.
  • Earlier runs of the same case, before the table was given a height and before the watchdog existed, got past the mount to their first check in roughly three minutes in all; I did not time those runs precisely. One later run, with no watchdog, printed nothing for four hours before it was killed. Where that run spent its time was not established.
  • Not profiled: which part of the mount (row states for 2,000 keys, the 300 header cells, column-width measurement, the realized rows' 300 cells each) takes the time is unknown. Not measured on the recording backend at this size, and not at 2,000 × 30.

Impact

A wide document table cannot be mounted in an acceptable time, and the step-0 frontend baseline (F2 to F5 of docs/spec/table/table.md) cannot be recorded against it.

What would close it

The mount above completes, and the baseline prints its F2 row, within a budget the spec can hold (F1's 250 ms is the eventual target for a model-backed table). Close as not a defect if a profile shows the time is spent in the realized rows alone and the column window (table.md step 5) is the fix. Re-open if the mount of a virtualized table again grows with its total rows rather than its realized ones.

Activity

  1. added
    bug
    area: qt
    on Nov 18, 2026
  2. Yaraslaut commented on Nov 19, 2026

    @Yaraslaut
    MemberAuthor

    Triage: unverified. Profile before fixing

    The figure is real (the mount ran past 300 s), but the reporter says the cause is not established and the host was 80–90% busy. Not re-measured here. In this batch the lane profiles the mount at 2,000 × 300 and 2,000 × 30 on the recording and Qt Quick backends, after #1130/#1131/#1129 land in the same lane. If the time grows with total rows, it is fixed here. If it is the realized rows' 300 cells, the fix is table.md step 5 (column window) under #1085/#1128, and this closes as the issue itself proposes. Would change: a profile either way.

  3. added
    triage: unverified
    on Nov 19, 2026
  4. Yaraslaut commented on Nov 19, 2026

    @Yaraslaut
    MemberAuthor

    Profile (Linux, clang 21 Release, QT_QPA_PLATFORM=offscreen, Interpreter::mount of a literal-row table with sizing height stretch, 1,280 x 800-class window; box shared with other builds, so absolute numbers are rough). Measured on branch lane/batch-1119-b-tables, after #1130/#1131/#1129:

    qt quick  2000 x 30 : mount 0.713 s, settle 0.388 s
    qt quick  4000 x 30 : mount 0.688 s, settle 0.386 s
    qt quick  8000 x 30 : mount 0.783 s, settle 0.387 s
    qt quick  2000 x 100: mount 3.994 s, settle 5.162 s
    qt quick  2000 x 300: mount 33.320 s, settle 67.215 s
    recording 2000 x 30 : 0.029 s   4000 x 30: 0.088 s   2000 x 100: 0.126 s   2000 x 300: 0.453 s
    

    The time does not grow with total rows (2,000 to 8,000 rows at 30 columns is flat) and does grow with columns, faster than linearly on Qt Quick. perf record of the 2,000 x 100 run puts the largest named share in the QML engine's garbage collector (QV4::QObjectWrapper::markWrapper, QV4::Heap::Object::markObjects, about 17% together), which marks every live cell object on each collection; the realized rows' cells (rows x columns) are what it marks. The recording backend does 2,000 x 300 in 0.45 s, so the framework's own mount is not the cost. So this is the realized rows' cells, the column window (table.md step 5), and it closes under #1085 step 5. Not built here. Not checked: the issue's MSVC/Windows host, and the 300 s figure itself (here 2,000 x 300 finishes in about 100 s in all). A fix that cut the realized rows' cell count or the per-collection mark cost would change this verdict only if the time still grew with total rows after it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: qtbugtriage: unverified

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions