diff options
| author | Pietro Albini <pietro@pietroalbini.org> | 2020-10-01 17:15:12 +0200 |
|---|---|---|
| committer | Mark Rousskov <mark.simulacrum@gmail.com> | 2020-10-08 09:38:37 -0400 |
| commit | cfc8d814bbc88f9540e748e3be07fdc6d4e930ad (patch) | |
| tree | 8f6712e959ef788d6f8a10c1918b8e52ed9a87ac /src/test/ui/thinlto | |
| parent | d43d717b73026c8fac0f4ccc47f9dd01e1f526b0 (diff) | |
| download | rust-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
