cool-easter-32542
03/23/2023, 4:19 PMBut that would use more passes over the data than we strictly need. We do need to re-compute and validate the Digest of the data (because we don't immediately trust the data that we get over the wire), but the Digest could be computed while writing the data to the temporary file, rather than via reading it in two passes as fn store will do.Describe alternatives you've considered N/A Additional context #18054 is related. pants/src/rust/engine/fs/store/src/remote.rs Lines 458 to 469 in </pantsbuild/pants/commit/763191382d67343959c518e5eefd809ed5480ded|7631913> could be adjusted to feed a hashing writer down into
load_monomorphic.
pantsbuild/pantscool-easter-32542
03/23/2023, 4:19 PM