]> git.lizzy.rs Git - rust.git/commit
Significantly speed up assembling of sysroots
authorbjorn3 <17426603+bjorn3@users.noreply.github.com>
Sun, 15 Jan 2023 14:14:13 +0000 (14:14 +0000)
committerbjorn3 <17426603+bjorn3@users.noreply.github.com>
Sun, 15 Jan 2023 14:14:13 +0000 (14:14 +0000)
commitabcff71bec1ef1614041e59ea4f947bb0a13267c
tree5330859817bd2210357b0e14beba5a7b2ced6fb4
parent13197322ec78820cdd3214d8001f81fa4773918b
Significantly speed up assembling of sysroots

By avoiding some redundant rustc calls and stripping debuginfo for
wrappers. ./y.rs build --sysroot none now runs 44% faster.

Benchmark 1: ./y_before.bin build --sysroot none
  Time (mean ± σ):      2.200 s ±  0.038 s    [User: 2.140 s, System: 0.653 s]
  Range (min … max):    2.171 s …  2.303 s    10 runs

Benchmark 2: ./y_after.bin build --sysroot none
  Time (mean ± σ):      1.528 s ±  0.020 s    [User: 1.388 s, System: 0.490 s]
  Range (min … max):    1.508 s …  1.580 s    10 runs

Summary
  './y_after.bin build --sysroot none' ran
    1.44 ± 0.03 times faster than './y_before.bin build --sysroot none'
build_system/bench.rs
build_system/build_sysroot.rs
build_system/rustc_info.rs
build_system/utils.rs