Stream: git-wasmtime

Topic: wasmtime / PR #4618 Cranelift: `ABISig::from_func_sig` sh...


view this post on Zulip Wasmtime GitHub notifications bot (Aug 04 2022 at 21:43):

fitzgen opened PR #4618 from dont-canonicalize-multiple-times to main:

It was previously canonicalizing the struct-return pointer internally, but some callers already had a canonicalized signature that they were giving it. This resulted in some unnecessary no-op copies of the signature, and therefore unnecessary heap allocations. Now, instead, we make it an invariant that callers always pass a canonicalized signature.

Gives a ~5% speedup to compilation on the Sightglass's Spidermonkey benchmark, and no difference in performance on the others:

compilation :: nanoseconds :: benchmarks/spidermonkey/benchmark.wasm

  Δ = 120607087.58 ± 33517739.42 (confidence = 99%)

  main.so is 0.95x to 0.97x faster than feature.so!
  feature.so is 1.03x to 1.06x faster than main.so!

  [2768415639 2868809793.49 3149141782] main.so
  [2479287976 2748202705.91 3044819409] feature.so

compilation :: nanoseconds :: benchmarks/bz2/benchmark.wasm

  No difference in performance.

  [76865944 84866240.58 95562639] main.so
  [75639139 84154259.01 96727948] feature.so

compilation :: nanoseconds :: benchmarks/pulldown-cmark/benchmark.wasm

  No difference in performance.

  [113503142 133806222.94 150176738] main.so
  [115003031 133491736.64 164840112] feature.so

<!--

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 (Aug 04 2022 at 21:43):

fitzgen requested cfallin for a review on PR #4618.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 04 2022 at 23:20):

cfallin submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 05 2022 at 16:19):

fitzgen updated PR #4618 from dont-canonicalize-multiple-times to main.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 05 2022 at 16:57):

fitzgen updated PR #4618 from dont-canonicalize-multiple-times to main.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 05 2022 at 21:45):

fitzgen updated PR #4618 from dont-canonicalize-multiple-times to main.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 05 2022 at 21:46):

fitzgen requested cfallin for a review on PR #4618.


Last updated: Dec 23 2024 at 13:07 UTC