summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2019-12-20 23:38:23 -0800
committerTodd Gamblin <tgamblin@llnl.gov>2019-12-23 18:36:56 -0800
commit779ac9fe3e1968bbc8b267712c8827aba5dd985e (patch)
tree7debba9fd1ad221ba862f7fcebfbff717c867bbe /bin
parent99dee9037204d6bbf6d45f6e06a65fb21cfe50eb (diff)
downloadspack-779ac9fe3e1968bbc8b267712c8827aba5dd985e.tar.gz
spack-779ac9fe3e1968bbc8b267712c8827aba5dd985e.tar.bz2
spack-779ac9fe3e1968bbc8b267712c8827aba5dd985e.tar.xz
spack-779ac9fe3e1968bbc8b267712c8827aba5dd985e.zip
performance: avoid repeated DB locking on view generation
`ViewDescriptor.regenerate()` checks repeatedly whether packages are installed and also does a lot of DB queries. Put a read transaction around the whole thing to avoid repeatedly locking and unlocking the DB.
Diffstat (limited to 'bin')
0 files changed, 0 insertions, 0 deletions