Skip to content

Prepare speed up#2419

Merged
leolost2605 merged 3 commits into
mainfrom
leolost/prepare-speed-up
Feb 25, 2026
Merged

Prepare speed up#2419
leolost2605 merged 3 commits into
mainfrom
leolost/prepare-speed-up

Conversation

@leolost2605

Copy link
Copy Markdown
Member

Fix identifying main thread and introduce a utils method for normalizing component id. This prepares for a PR that will speed up get_packages_for_component_id which we call quite often from O(n) to O(1) where n is the number of packages (>10000 with flathub). It will also allow for quite some speedup of methods like get_packages_for_author, get_featured_packages, search etc. and will allow to move them to list models.

@leolost2605
leolost2605 merged commit a33face into main Feb 25, 2026
4 checks passed
@leolost2605
leolost2605 deleted the leolost/prepare-speed-up branch February 25, 2026 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants