]> git.lizzy.rs Git - rust.git/commit
Eliminate a couple of extra calls
authorbjorn3 <17426603+bjorn3@users.noreply.github.com>
Sun, 15 Jan 2023 14:38:22 +0000 (14:38 +0000)
committerbjorn3 <17426603+bjorn3@users.noreply.github.com>
Sun, 15 Jan 2023 15:20:36 +0000 (15:20 +0000)
commit0f4df8fb0e56f7ac157fba4c4209f520ba7fba79
tree20d508e07416f23e37a41c3d9227eb3f4ffcf913
parentabcff71bec1ef1614041e59ea4f947bb0a13267c
Eliminate a couple of extra calls

This is an additional 17% improvement on ./y.rs compile --sysroot none

Benchmark 1: ./y_before.bin build --sysroot none
  Time (mean ± σ):      1.533 s ±  0.022 s    [User: 1.411 s, System: 0.471 s]
  Range (min … max):    1.517 s …  1.589 s    10 runs

Benchmark 2: ./y_after.bin build --sysroot none
  Time (mean ± σ):      1.311 s ±  0.020 s    [User: 1.232 s, System: 0.428 s]
  Range (min … max):    1.298 s …  1.366 s    10 runs

Summary
  './y_after.bin build --sysroot none' ran
    1.17 ± 0.02 times faster than './y_before.bin build --sysroot none'
build_system/build_sysroot.rs