about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm
diff options
context:
space:
mode:
authorPietro Albini <pietro@pietroalbini.org>2020-10-01 17:15:12 +0200
committerPietro Albini <pietro@pietroalbini.org>2020-10-01 17:30:24 +0200
commitacd8e59b6650deab3979e82b49c8c26e0f4ceefa (patch)
tree3e04475b5e1a4603b588aadb97903998426e0c45 /src/test/codegen/src-hash-algorithm
parent0375ee8b55becd14ca73ad420b7311fb6e9dfaeb (diff)
downloadrust-acd8e59b6650deab3979e82b49c8c26e0f4ceefa.tar.gz
rust-acd8e59b6650deab3979e82b49c8c26e0f4ceefa.zip
build-manifest: calculate checksums lazily and in parallel
This commit improves the way build-manifest calculates the checksums
included in the manifest, speeding it up:

* Instead of calculating all the hashes beforehand and then using the
  ones we need, the manifest is first generated with placeholder hashes,
  and then a function walks through the manifest and calculates only the
  needed checksums.

* Calculating the checksums is now done in parallel with rayon, to
  better utilize all the available disk bandwidth.

* Calculating the checksums now uses the sha2 crate instead of the
  sha256sum CLI tool: this avoids the overhead of calling another
  process, but more importantly uses hardware acceleration whenever
  available (the CLI tool doesn't support it at all).
Diffstat (limited to 'src/test/codegen/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions