Repository navigation
Conversation
[Medium impact] The PR appears safe to merge; no actionable issues were found. SummarySeparates disk-cache reads from thumbnail generation so cached pictures do not wait behind busy generators.
Acknowledged limits:
|
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
A ready disk-cache PNG currently waits behind running video/PDF/image generation in the provider's one pool. Probe cache entries in a separate two-worker pool; send misses to the existing generation pool, where freshness/cache is checked again. Text pages go straight to their existing generation route.
No disk access moves to the UI thread, no RAM cache or dependency is added, and generation concurrency remains unchanged. A missing PNG is detected before querying source metadata, avoiding an extra network-source lookup on ordinary cold misses. Cache freshness uses the existing policy.
A response is separate from runnable tasks. Cancellation is checked around the cache stage and before queued generation; destruction drains cache work before generation because cache misses may still enqueue jobs. Every response finishes once. This does not import #117's running-helper cancellation.
Evidence
Merge Danger
Door: two-way.
Blast Radius: thumbnail admission. Two additional bounded workers can themselves wait on slow cache/source I/O; the existing generation limit is preserved. Pending #67/#117 changes will need the usual rebase and validation before integrating on their final base. This PR targets
mainindependently; #67/#117 are not base dependencies.