Skip to content

Refactor repository installation logic for efficiency and clarity#229

Merged
mvdbeek merged 6 commits intogalaxyproject:masterfrom
arash77:iterate-over-repos
Feb 24, 2026
Merged

Refactor repository installation logic for efficiency and clarity#229
mvdbeek merged 6 commits intogalaxyproject:masterfrom
arash77:iterate-over-repos

Conversation

@arash77
Copy link
Copy Markdown
Member

@arash77 arash77 commented Oct 15, 2025

Replaced the nested loop repository matching with a hash-based lookup table to improve performance and readability. Matching is now done via (name, owner, revision) keys with a secondary tool shed URL check. This reduces time complexity from O(n×m) to O(n+m) and simplifies the logic.

Comment thread src/ephemeris/shed_tools.py Outdated
Comment thread src/ephemeris/shed_tools.py Outdated
Comment thread src/ephemeris/shed_tools.py Outdated
Comment thread src/ephemeris/shed_tools.py Outdated
Copy link
Copy Markdown
Member

@mvdbeek mvdbeek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good now, if you restore the imports this is good to go

Comment thread src/ephemeris/shed_tools.py Outdated
arash77 and others added 6 commits February 24, 2026 13:13
@mvdbeek mvdbeek merged commit 8a1084e into galaxyproject:master Feb 24, 2026
6 of 7 checks passed
@mvdbeek
Copy link
Copy Markdown
Member

mvdbeek commented Feb 24, 2026

Thanks @arash77!

@arash77 arash77 deleted the iterate-over-repos branch February 24, 2026 12:18
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