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.
[ ] This has been discussed in issue #..., or if not, please tell us why
here.[ ] A short description of what this does, why it is needed; if the
description becomes long, the matter should probably be discussed in an issue
first.[ ] This PR contains test cases, if meaningful.
- [ ] A reviewer from the core maintainer team has been assigned for this PR.
If you don't know who could review this, please indicate so. The list of
suggested reviewers on the right can help you.Please ensure all communication adheres to the code of conduct.
-->
cfallin submitted PR review.
cfallin merged PR #4147.
Last updated: Dec 23 2024 at 13:07 UTC