Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
database: don't call
socket.getfqdn()
on every write (spack#46554)
We've seen `getfqdn()` cause slowdowns on macOS in CI when added elsewhere. It's also called by database.py every time we write the DB file. - [x] replace the call with a memoized version so that it is only called once per process. Signed-off-by: Todd Gamblin <tgamblin@llnl.gov>
- Loading branch information