Skip to content

install: Avoid env.write_transacation when concretize is a no-op.#51535

Open
vbrunini wants to merge 2 commits intospack:developfrom
vbrunini:install_skip_noop_write
Open

install: Avoid env.write_transacation when concretize is a no-op.#51535
vbrunini wants to merge 2 commits intospack:developfrom
vbrunini:install_skip_noop_write

Conversation

@vbrunini
Copy link
Copy Markdown
Contributor

@vbrunini vbrunini commented Nov 7, 2025

Split out of #51518 based on review comments. @haampie

vbrunini added a commit to vbrunini/spack that referenced this pull request Nov 8, 2025
Combined with spack#51535, spack#51536, spack#51367 and the reduced install
task sleep time from spack#51491 this reduces the time for a no-op install of
a development environment with 94 packages (including dependencies) from 8s
to 2.8s for me. It also provides a similar reduction in time for
`spack build-env --dump env.txt mypkg` which we frequently use to start a
shell with the build environment.

Signed-off-by: Victor Brunini <[email protected]>
Signed-off-by: Victor Brunini <[email protected]>
@haampie haampie added this to the v1.2.0 milestone Jan 26, 2026
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