[playlists] Speed up large playlist loading#2052
Merged
frankrousseau merged 2 commits intoJun 14, 2026
Merged
Conversation
…ively Opening a large playlist froze the main thread: every preview revision shipped its annotation blob, and all entity cards mounted at once. - Fetch annotations on demand for the current preview and a ±2 sliding window, cached in previewFileMap with in-flight dedup (reuses GET /api/data/preview-files/<id>). - Mount the PlaylistedEntity strip in batches of 40 via requestIdleCallback so the UI is interactive immediately; scrollToEntity self-heals if an entity is not mounted yet. - Draw lazily-loaded annotations without seeking the player (loadSingleAnnotation rather than loadAnnotation) so the async load can't move the timeline. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
On long clips each frame falls below 3px and the per-frame stripes are dropped, which exposed the light base background and looked like a bug. Paint the dense fallback a solid dark grey matching the stripe tone. 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.
Problems
Solutions