summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorHarmen Stoppels <harmenstoppels@gmail.com>2022-03-08 10:50:48 +0100
committerGitHub <noreply@github.com>2022-03-08 10:50:48 +0100
commita39a6c4ea7863031d1c89fea05b3b3be76e25f2f (patch)
tree6c51c7a5594eb8148acc9a629a328eacdd56179b /.github/workflows
parent4b5e07114118b14a08e70f56b3515b5f65aa8c56 (diff)
downloadspack-a39a6c4ea7863031d1c89fea05b3b3be76e25f2f.tar.gz
spack-a39a6c4ea7863031d1c89fea05b3b3be76e25f2f.tar.bz2
spack-a39a6c4ea7863031d1c89fea05b3b3be76e25f2f.tar.xz
spack-a39a6c4ea7863031d1c89fea05b3b3be76e25f2f.zip
version.py: set is_commit in constructor (#29369)
Speeds up comparison on `Version` by ~2.5x, e.g. ```python In [1]: v = spack.version.Version('1.0.0'); w = spack.version.Version('1.0.2') In [2]: %timeit v < w 1.47 µs ± 5.59 ns per loop (mean ± std. dev. of 7 runs, 1000000 loops each) 535 ns ± 1.75 ns per loop (mean ± std. dev. of 7 runs, 1000000 loops each) ```
Diffstat (limited to '.github/workflows')
0 files changed, 0 insertions, 0 deletions