Skip to content

Speedup environment activation, part 2#25633

Merged
tgamblin merged 10 commits intospack:developfrom
adamjstewart:fixes/python-env-activation
Aug 26, 2021
Merged

Speedup environment activation, part 2#25633
tgamblin merged 10 commits intospack:developfrom
adamjstewart:fixes/python-env-activation

Conversation

@adamjstewart
Copy link
Copy Markdown
Member

This is a direct followup to #13557 which caches additional attributes that were added in #24095 that are expensive to compute. I had to reopen #25556 in another PR to invalidate the GitLab CI cache, but see #25556 for prior discussion.

Before

$ time spack env activate .

real	2m13.037s
user	1m25.584s
sys	0m43.654s
$ time spack env view regenerate
==> Updating view at /Users/Adam/.spack/.spack-env/view

real	16m3.541s
user	10m28.892s
sys	4m57.816s
$ time spack env deactivate

real	2m30.974s
user	1m38.090s
sys	0m49.781s

After

$ time spack env activate .

real	0m8.937s
user	0m7.323s
sys	0m1.074s
$ time spack env view regenerate
==> Updating view at /Users/Adam/.spack/.spack-env/view

real	2m22.024s
user	1m44.739s
sys	0m30.717s
$ time spack env deactivate

real	0m10.398s
user	0m8.414s
sys	0m1.630s

Fixes #25555
Fixes #25541

@tgamblin
Copy link
Copy Markdown
Member

tgamblin commented Aug 26, 2021

Looking good so far. Pipelines are nearly done.

@adamjstewart
Copy link
Copy Markdown
Member Author

Yay, GitLab passed!

@tgamblin tgamblin enabled auto-merge (squash) August 26, 2021 20:39
@tgamblin tgamblin merged commit 6eb942c into spack:develop Aug 26, 2021
@adamjstewart adamjstewart deleted the fixes/python-env-activation branch August 26, 2021 20:51
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.

Environment activation is slow Environment view updates are slow

2 participants