Skip to content

perf: Optimize getAllThumbnails() #8525

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 29, 2025

Conversation

tykus160
Copy link
Member

Use segment references from forEachTopLevelReference() callback to avoid unnecessary linear search on every possible thumbnail.

@tykus160 tykus160 added type: performance A performance issue priority: P2 Smaller impact or easy workaround labels Apr 28, 2025
@tykus160 tykus160 added this to the v4.15 milestone Apr 28, 2025
@tykus160 tykus160 requested review from joeyparrish and avelad April 28, 2025 10:30
@shaka-bot
Copy link
Collaborator

Incremental code coverage: 90.00%

@avelad avelad merged commit f15d627 into shaka-project:main Apr 29, 2025
48 of 50 checks passed
avelad pushed a commit that referenced this pull request Apr 29, 2025
Use segment references from `forEachTopLevelReference()` callback to
avoid unnecessary linear search on every possible thumbnail.
@shaka-bot shaka-bot added the status: archived Archived and locked; will not be updated label Jun 28, 2025
@shaka-project shaka-project locked as resolved and limited conversation to collaborators Jun 28, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
priority: P2 Smaller impact or easy workaround status: archived Archived and locked; will not be updated type: performance A performance issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants