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

Visible slowdown when starting sub-shell with Modules 5 #477

Closed
xdelaruelle opened this issue Oct 30, 2022 · 0 comments
Closed

Visible slowdown when starting sub-shell with Modules 5 #477

xdelaruelle opened this issue Oct 30, 2022 · 0 comments
Labels
Milestone

Comments

@xdelaruelle
Copy link
Member

When the set_shell_startup configuration is enabled and several modules are loaded (>20), it may take some time to start a sub-shell.

This is especially visible when running a shell script that performs a lot a sub-shell execution.

This issue comes from the automatic refresh evaluation that is performed since Modules 5.0 when spawning a sub-shell.

It was observed on a setup with complex modulefiles, taking around 50ms each to evaluate. Refreshing 20 loaded modules took a second to complete.

@xdelaruelle xdelaruelle added this to the 5.2 milestone Oct 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant