diff options
author | Harmen Stoppels <harmenstoppels@gmail.com> | 2023-08-16 14:33:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-16 14:33:03 +0200 |
commit | 4f07205c6376aeac4fa8d2e24db205441174b78f (patch) | |
tree | db487b46cd351f53afe705fccd343441e1c1993e /bin/haspywin.py | |
parent | 08f9c7670eb00ee5221be4a3cfc0a905c151fe85 (diff) | |
download | spack-4f07205c6376aeac4fa8d2e24db205441174b78f.tar.gz spack-4f07205c6376aeac4fa8d2e24db205441174b78f.tar.bz2 spack-4f07205c6376aeac4fa8d2e24db205441174b78f.tar.xz spack-4f07205c6376aeac4fa8d2e24db205441174b78f.zip |
Avoid sort on singleton list during edge insertion (#39458)
The median length of this list of 1. For reasons I don't know, `.sort()`
still like to call the key function.
This saves ~9% of total database read time, and the number of calls
goes from 5305 -> 1715.
Diffstat (limited to 'bin/haspywin.py')
0 files changed, 0 insertions, 0 deletions