spack/lib/spack
Harmen Stoppels c85877566f
Reduce the number of stat calls in "spack verify" (#37251)
Spack comes to a crawl post-install of nvhpc, which is partly thanks to
this post install hook which has a lot of redundancy, and isn't correct.

1. There's no need to store "type" because that _is_ "mode".
2. There are more file types than "symlink", "dir", "file".
3. Don't checksum device type things
4. Don't run 3 stat calls (exists, stat, isdir/islink), but one lstat
   call
5. Don't read entire files into memory

I also don't know why `spack.crypto` wasn't used for checksumming, but I
guess it's too late for that now. Finally md5 would've been the faster
algorithm, which would've been fine given that a non cryptographicall
checksum was used anyways.
2023-04-28 13:24:24 +00:00
..
docs make version(...) kwargs explicit (#36998) 2023-04-19 14:17:47 -07:00
env compiler wrapper: fix -Xlinker parsing (#35929) 2023-03-31 09:47:24 -07:00
external Update archspec to latest release (#37070) 2023-04-21 11:01:37 +02:00
llnl Add llnl.util.filesystem.find_first (#36083) 2023-03-27 09:42:16 -07:00
spack Reduce the number of stat calls in "spack verify" (#37251) 2023-04-28 13:24:24 +00:00
spack_installable license year bump (#34921) 2023-01-18 14:30:17 -08:00