Skip to content

virtual rows: a delegate's rows are prepared by its own preparer - #72

Merged
trissim merged 1 commit into
mainfrom
claude-a/row-preparer
Nov 22, 2026
Merged

trissim merged 1 commit into
mainfrom
claude-a/row-preparer

Conversation

@trissim

@trissim trissim commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

Every RowDocumentDelegate owned a one-thread pool and called each row's preparation on it. A member whose preparation is Python shares the interpreter with the GUI thread there, and a member with worker processes had a second route beside them.

RowPreparer is the family (prepare, clear, stop). ThreadRowPreparer is the thread there was and stays the default; a member answers row_preparer() to prepare elsewhere.

Tests: tests/test_virtual_rows.py, tests/test_log_viewer_lifecycle.py: 22 passed, one new. The two tests in tests/test_virtual_rows_band.py fail the same way on main.

🤖 Generated with Claude Code

https://claude.ai/code/session_016gZLdx92gKjvnNKianjAXG

Every RowDocumentDelegate owned a one-thread QThreadPool and called each row's
preparation on it. For a member whose preparation is Python (Toad's history:
blocks to rich text), that thread takes turns with the GUI thread for the
interpreter, and a member that already has worker processes had a second
route beside them that any row not handed over ready-made fell into, silently.

Where rows are prepared is now a family, `RowPreparer` (prepare, clear, stop;
batches arrive through one callback on the GUI thread). `ThreadRowPreparer` is
the worker thread there was, and the default (`row_preparer`); a member that
prepares elsewhere answers its own, and then has no thread at all.

Tests: tests/test_virtual_rows.py and tests/test_log_viewer_lifecycle.py, 22
passed, with the new test_a_member_prepares_its_rows_where_it_says. The two
tests in tests/test_virtual_rows_band.py fail the same way on origin/main.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016gZLdx92gKjvnNKianjAXG
@trissim
trissim merged commit 916fca2 into main Nov 22, 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