forked from wasmerio/wasmer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement host functions in 1 case, optimize
NativeFunc::call
`NativeFunc::call` is about 8% faster in the case we're benchmarking by avoiding allocating a vector for the params / returns, instead we do logic to determine which is larger and use that, conditionally copying it back to the rets array if needed.
- Loading branch information
Mark McCaskey
committed
Jun 9, 2020
1 parent
85b901d
commit eb928e7
Showing
3 changed files
with
54 additions
and
38 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