Repository navigation
virtual rows: a delegate's rows are prepared by its own preparer - #72
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Every
RowDocumentDelegateowned 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.RowPrepareris the family (prepare, clear, stop).ThreadRowPrepareris the thread there was and stays the default; a member answersrow_preparer()to prepare elsewhere.Tests:
tests/test_virtual_rows.py,tests/test_log_viewer_lifecycle.py: 22 passed, one new. The two tests intests/test_virtual_rows_band.pyfail the same way on main.🤖 Generated with Claude Code
https://claude.ai/code/session_016gZLdx92gKjvnNKianjAXG