Stream: git-wasmtime

Topic: wasmtime / PR #4147 Use HashMaps instead of BTreeMaps in ...


view this post on Zulip Wasmtime GitHub notifications bot (May 12 2022 at 16:04):

bjorn3 opened PR #4147 from isle_hashmaps to main:

The HashMap implementation is significantly simpler than the BTreeMap
implementation. Because of this switching reduces compilation time of
cranelift-isle by about 10%.

Before

$ hyperfine --prepare "cargo clean" "cargo build"
Benchmark 1: cargo build
  Time (mean ± σ):      5.221 s ±  0.094 s    [User: 10.659 s, System: 0.734 s]
  Range (min  max):    5.151 s   5.420 s    10 runs

After

$ hyperfine --prepare "cargo clean" "cargo build"
Benchmark 1: cargo build
  Time (mean ± σ):      4.746 s ±  0.150 s    [User: 9.109 s, System: 0.721 s]
  Range (min  max):    4.630 s   5.144 s    10 runs

<!--

Please ensure that the following steps are all taken care of before submitting
the PR.

Please ensure all communication adheres to the code of conduct.
-->

view this post on Zulip Wasmtime GitHub notifications bot (May 12 2022 at 17:01):

cfallin submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (May 12 2022 at 17:02):

cfallin merged PR #4147.


Last updated: Nov 22 2024 at 16:03 UTC