Skip to content
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

significantly speed up -D/--dry-run by avoiding useless 'module show' #3203

Merged
merged 1 commit into from
Feb 14, 2020

Conversation

boegel
Copy link
Member

@boegel boegel commented Feb 14, 2020

ModulesTool.exist falls back to use module show by default since the module names it is passed may be partial module names which won't show up in module avail.

In skip_available we're always passing full module names though, so there we can tell it the module names are not partial...

This results in a speedup of about 2x for eb -D!

@boegel boegel changed the title significantly speed up -D/--dry-run by avoiding useless 'module show'… significantly speed up -D/--dry-run by avoiding useless 'module show' Feb 14, 2020
@boegel boegel added this to the next release (4.1.2?) milestone Feb 14, 2020
Copy link
Contributor

@akesandgren akesandgren left a comment

Choose a reason for hiding this comment

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

LGTM

@akesandgren
Copy link
Contributor

Going in, thanks @boegel!

@akesandgren akesandgren merged commit 49533e6 into easybuilders:develop Feb 14, 2020
@boegel boegel deleted the speedup_D branch February 14, 2020 16:15
@boegel
Copy link
Member Author

boegel commented Feb 14, 2020

@shahzebsiddiqui This should help quite a bit with eb -D being slow...

@shahzebsiddiqui
Copy link
Contributor

thanks @boegel this will certainly help. I will upgrade and test it out once you release 4.1.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants