Repository navigation
Conversation
[Medium impact] The PR appears safe to merge; no actionable issues were found. SummaryFolder counts now check whether their work is obsolete while walking each directory.
No actionable issues were found. Tests were not run during this review.
|
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.
Summary
Leaving a folder invalidates its count job, but a count already running still enumerates the entire child directory. Pass the existing generation predicate into that loop so navigation, refresh or model destruction can stop obsolete work.
Include hidden entries in the iterator, then exclude them from the total when hidden files are off. Otherwise Qt can filter a long hidden run internally without yielding to the cancellation check. Linux hidden-name semantics and exclusion of
./..are preserved.Based directly on
main; no dependency on #67, #117 or #118. Complements #116's pool separation by avoiding wasted counting itself. No dependency or thread-pool change.Evidence
readdir64()by 500 µs per entry; it measures queue contention, not ordinary SSD navigation. Give folder listings their own thread pool; make showItem invokable #116 may remove that listing contention independently.git diff --checkpass. Final complete local suite: 197 passed, 0 failed, using Qt image plugins matching the CI dependency set. Regression covers cancellation during enumeration, before starting, empty/hidden directories and a complete retry. Independent review found no remaining issues.Merge Danger
Door: two-way.
Blast Radius: folder counters. Cancellation is cooperative between iterator advances and cannot interrupt an already blocked filesystem call. The previewer's separate folder-summary path is unchanged.