summary refs log tree commit diff
path: root/src/test/ui/thinlto
diff options
context:
space:
mode:
authorPietro Albini <pietro@pietroalbini.org>2020-10-01 17:15:12 +0200
committerMark Rousskov <mark.simulacrum@gmail.com>2020-10-08 09:38:37 -0400
commitcfc8d814bbc88f9540e748e3be07fdc6d4e930ad (patch)
tree8f6712e959ef788d6f8a10c1918b8e52ed9a87ac /src/test/ui/thinlto
parentd43d717b73026c8fac0f4ccc47f9dd01e1f526b0 (diff)
downloadrust-cfc8d814bbc88f9540e748e3be07fdc6d4e930ad.tar.gz
rust-cfc8d814bbc88f9540e748e3be07fdc6d4e930ad.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/ui/thinlto')
0 files changed, 0 insertions, 0 deletions