forked from bytecodealliance/wasmtime
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Miscellaneous tweaks to speed up call/RPS benchmarks (bytecodeallianc…
…e#7953) This commit makes the following changes: * A handful of `#[inline]` annotations. * A couple cases of splitting out uncommon/slow paths from `#[inline]`-annotated functions into their own non-`#[inline]`-annotated functions. * Remove a call to `mpk::is_supported()` in async context construction. It is sufficient to just check `self.pkey.is_some()` since if mpk isn't supported we won't have a pkey, if we do have a pkey mpk must have been supported for us to get it, and even if mpk is supported, if we don't have a pkey we don't need to do anything here. Criterion benchmark results: ``` sync/no-hook/core - host-to-wasm - typed - nop-params-and-results time: [25.214 ns 25.322 ns 25.443 ns] change: [-21.901% -20.227% -18.749%] (p = 0.00 < 0.05) Performance has improved. ```
- Loading branch information
Showing
5 changed files
with
42 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters