Stream: git-wasmtime

Topic: wasmtime / PR #4853 Tweak adapter cost of lists


view this post on Zulip Wasmtime GitHub notifications bot (Sep 02 2022 at 15:14):

alexcrichton opened PR #4853 from list-is-expensive to main:

I noticed an oss-fuzz-based timeout that was reported for the
component_api fuzzer where the adapter module generated takes 1.5
seconds to compile the singular function in release mode (no fuzzing
enabled). The test case in question was a deeply recursive
list-of-list-of-etc and only one function was generated instead of
multiple. I updated the cost of strings/lists to cost more in the
approximate cost calculation which now forces the one giant function to
get split up and the large function is now split up into multiple
smaller function that take milliseconds to compile.

<!--

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 (Sep 02 2022 at 16:52):

fitzgen submitted PR review.

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

alexcrichton has enabled auto merge for PR #4853.

view this post on Zulip Wasmtime GitHub notifications bot (Sep 02 2022 at 18:11):

alexcrichton merged PR #4853.


Last updated: Dec 23 2024 at 12:05 UTC