diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2019-12-27 23:17:34 -0800 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2019-12-30 13:01:31 -0800 |
commit | b2e9696052dc76f9612051d7ad85094a762271c8 (patch) | |
tree | f872fecd6731b55b0cde12af4bd1161d55856550 /README.md | |
parent | e7dc8a2bea23b013a8af4938a5eee298a1f59141 (diff) | |
download | spack-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 'README.md')
0 files changed, 0 insertions, 0 deletions