Perf: move Lite sub-tab refreshes off the UI thread (P1b)#1111
Merged
Conversation
Continues the Lite off-thread work. Wraps every _dataService.Get*Async call in the per-sub-tab refresh methods (RefreshWaitStats/Cpu/FileIo/TempDb/Perfmon/ RunningJobs/Configuration/DailySummary/CollectionHealth, and the switch-based Queries/Memory/Blocking) plus the blocking/deadlock slicer loaders in Task.Run, so the 60s-timer steady-state refresh and tab-switch refresh run their DuckDB queries on pool threads instead of the dispatcher. Each query's read lock is acquired+released within one synchronous run (ReaderWriterLockSlim affinity holds); UI-update code after the awaits is unchanged. Build: Lite builds clean (net10). Still on this effort: picker charts, drill-down, slicer-change handlers, grid selection, connect, status timer, timeline lanes, then a bounded read lock; then the shared-UI crosshair, the Dashboard chunk, and the leak cluster. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
Continues the Lite off-thread work (P1b). Wraps every
_dataService.Get*Asynccall in the per-sub-tab refresh methods + the blocking/deadlock slicer loaders inTask.Run, so the 60s-timer steady-state refresh and tab-switch refresh run their DuckDB queries on pool threads instead of the WPF dispatcher (correctReaderWriterLockSlimaffinity — each query acquires+releases its read lock within one synchronous run). UI-update code unchanged.Build: Lite builds clean (net10).
Still on this effort: picker charts, drill-down, slicer-change handlers, grid selection, connect, status timer, timeline lanes, then a bounded read lock; then shared-UI crosshair, the Dashboard chunk, the leak cluster.
Threading change — validate on a running Lite.
🤖 Generated with Claude Code