summaryrefslogtreecommitdiff
path: root/.gitattributes
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2019-12-27 23:17:34 -0800
committerTodd Gamblin <tgamblin@llnl.gov>2019-12-30 13:01:31 -0800
commitb2e9696052dc76f9612051d7ad85094a762271c8 (patch)
treef872fecd6731b55b0cde12af4bd1161d55856550 /.gitattributes
parente7dc8a2bea23b013a8af4938a5eee298a1f59141 (diff)
downloadspack-b2e9696052dc76f9612051d7ad85094a762271c8.tar.gz
spack-b2e9696052dc76f9612051d7ad85094a762271c8.tar.bz2
spack-b2e9696052dc76f9612051d7ad85094a762271c8.tar.xz
spack-b2e9696052dc76f9612051d7ad85094a762271c8.zip
argparse: lazily construct common arguments
Continuing to shave small bits of time off startup -- `spack.cmd.common.arguments` constructs many `Args` objects at module scope, which has to be done for all commands that import it. Instead of doing this at load time, do it lazily. - [x] construct Args objects lazily - [x] remove the module-scoped argparse fixture - [x] make the mock config scope set dirty to False by default (like the regular scope) This *seems* to reduce load time slightly
Diffstat (limited to '.gitattributes')
0 files changed, 0 insertions, 0 deletions