Skip to content

Per-row QtNameWaveDelegate QImage cache invalidation + clear NRA foreign_absence_probe - #2331

Merged
trissim merged 1 commit into
mainfrom
perf/wave-per-row-cache
Nov 27, 2026
Merged

trissim merged 1 commit into
mainfrom
perf/wave-per-row-cache

Conversation

@trissim

@trissim trissim commented Nov 27, 2026

Copy link
Copy Markdown

Summary

  • 6.15× live-bus sidebar wave speedup (86.23 ms → 14.03 ms, misses 720 → 48) on a 124-row waving QTreeWidget with 1 row updating per frame (60 frames × 12 visible rows, alternating unprofiled A/B):
    • Pairs with OpenHCSDev/PyQT-reactive#81 (107244b, forget_range + _rows_forgotten + PreparedRow.wraps): buckets QtNameWaveDelegate._row_images per id(row) and drops only modified rows in _rows_forgotten in O(1), instead of wiping every cached row image on any single thread's dataChanged.
    • Keys the hit fast path by (span, rect.width(), rect.height(), option.state._value_, view.wordWrap(), view.viewport().width(), dpr) (strict kernel refinement of (row, frame, wraps) per fixed PreparedRow), calls row.wraps(view) on misses, and inlines single-caller band_ink into QtWaveBandCache.baked_band_layout.
  • Clears NRA foreign_absence_probe (3836da74a1, IDEN-3) on src/toad/qt/name_wave.py: nominal-refactor-advisor src/toad/qt/name_wave.py --json reports findings: 0, gate.active: False.

Verification

  • QT_QPA_PLATFORM=offscreen pytest -q -p no:xdist tests/textual/test_name_wave_repaint.py: 3 passed in 0.19s (includes sibling-retention assertion on QTreeWidgetItem.setData).
  • Scratch-bus tools/qt_drive.py frame_work: RC=0, within the baseline (39.1/frame, 0 px sideways drag, accent drawn 15/20 looks).
  • Guards: REL_IMPORTS=0, qt_inherit_ratchet.py 0/0/0/0/0, shadow_check.py 0, guarded_imports.py 0.

@trissim
trissim merged commit ea84733 into main Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant