Repository navigation
Ask for independent requests together: detail page, playback start, Home - #956
Merged
Merged
Conversation
…est together A detail page asks for Related beside the item, then a show's seasons, its on-deck episode and the extras together, instead of one after another. A playback start asks for its play queue beside the rest of the plan (the playing item, the server's decision) and applies it at the end of every exit, since nothing in between reads it. Signed-off-by: Tiago Pereira <[email protected]>
The deck needs nothing from the hub list, so the two requests go out together; a failed deck still fails the source, as before. Signed-off-by: Tiago Pereira <[email protected]>
…beside each other on main's client-taking shape Resolves the conflicts with main's Sans-IO work (the detail chain and the play queue now take the client the runner resolved; the queue can continue an existing one) and settles the review of the PR on top of it. - plx_base::task::beside: a request asked for on a scoped sibling thread. The scope joins it on every exit, a refused thread asks on the caller's thread instead of dropping the work, and a panic in the work is re-raised at finish. Every site below uses it, so they share one policy (they had Related re-raise while extras and on-deck swallowed). - Detail page: Related is asked beside the item (it needs only the key), extras and a show's on-deck episode beside the seasons, all in one scope, so a movie costs max(item + extras, related). A refused item no longer words Related's refusal as a fact about it: fetch_related returns the refusal and the caller names it only when the item loaded. - Playback start: the play queue is asked beside the playing item and the decision in a scope around build_stream's body, so every exit joins it and land_queue is the one place its answer joins the plan (destructured whole). Main's queue_continuation behaviour is kept inside the sibling. The body stays in build_stream, so the Sans-IO ledger keys do not move. - Home: Continue Watching is asked beside /hubs, but its read-ahead only once the hub list answered, so a failing source costs the deck's request and not the read-ahead pages too. Tests: the queue/decision overlap and an early exit landing the queue (decision_queue_beside_tests), Related and extras overlap and the refused-item log (metadata_detail_client_tests), the failing hub list's read-ahead (pms_deck_tests), and beside's own contract (task.rs). track-memory's request shape compares sorted sets instead of hiding the queue behind a reorder. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
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.
A detail page, a playback start and Home each waited for requests that don't depend on each other. They now go out together (seasons/on-deck/extras beside each other; the play queue beside the plan; Continue Watching beside the hub list), each with the old serial ask as the fallback if a thread can’t start. Two commits, so either can be taken alone. No Plex timing was measured.