Skip to content

fix: make jellyfin cache read faster and async - #919

Merged
N1kO23 merged 1 commit into
masterfrom
fix/queue-restore-optimization
Aug 28, 2026
Merged

fix: make jellyfin cache read faster and async#919
N1kO23 merged 1 commit into
masterfrom
fix/queue-restore-optimization

Conversation

@N1kO23

@N1kO23 N1kO23 commented Aug 28, 2026

Copy link
Copy Markdown
Collaborator

Partially addresses issue reported in #914 (not closing)

  • This addresses the issue where client freezes for a bit until the whole cache gets applied. Also changed the hydration to happen in chunks, reducing time complexity from O(n²) to O(n²/K) where K is chunk size
  • Changed global queue restoring to be O(n) instead of O(n²)

Signed-off-by: Niko Huuskonen niko.huuskonen.00@gmail.com

- This addresses the issue where client freezes for a bit until the whole cache gets applied. Also changed the hydration to happen in chunks, reducing time complexity from O(n²) to O(n²/K) where K is chunk size
- Changed global queue restoring to be O(n) instead of O(n²)

Signed-off-by: Niko Huuskonen <niko.huuskonen.00@gmail.com>
@N1kO23 N1kO23 added enhancement New feature or request Media Management Issues related to media management, metadata, storage, library etc. Jellyfin Used for issues specifically related to jellyfin integration labels Aug 28, 2026
@N1kO23
N1kO23 merged commit 2632bcf into master Aug 28, 2026
37 checks passed
@N1kO23
N1kO23 deleted the fix/queue-restore-optimization branch August 28, 2026 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request Jellyfin Used for issues specifically related to jellyfin integration Media Management Issues related to media management, metadata, storage, library etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant