Stream: git-wasmtime

Topic: wasmtime / PR #3394 Validate functions in parallel in `Mo...


view this post on Zulip Wasmtime GitHub notifications bot (Sep 29 2021 at 19:56):

alexcrichton opened PR #3394 from validate-parallel to main:

We already validate wasm functions in parallel when compiling a module,
but the same parallelism wasn't available to the Module::validate API.
This commit peforms a minor tweak to the validate-the-whole-module API
to validate all functions in parallel in the same manner that module
compilation does.

<!--

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 29 2021 at 20:20):

fitzgen submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Sep 29 2021 at 20:50):

bjorn3 submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Sep 29 2021 at 20:50):

bjorn3 created PR review comment:

Would it be possible to avoid this intermediate vec and instead directly push each functionbto a worker thread? For example by implementing rayon::ParallelIterator?

view this post on Zulip Wasmtime GitHub notifications bot (Sep 30 2021 at 14:09):

alexcrichton submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Sep 30 2021 at 14:09):

alexcrichton created PR review comment:

Not easily, no, but it's something we can investigate in the future if necessary.

view this post on Zulip Wasmtime GitHub notifications bot (Sep 30 2021 at 14:09):

alexcrichton merged PR #3394.


Last updated: Nov 22 2024 at 16:03 UTC