Skip to content

Commit

Permalink
FIXES bytecodealliance#137: make calling wasm from python 7x faster
Browse files Browse the repository at this point in the history
  • Loading branch information
muayyad-alsadi committed Mar 26, 2023
1 parent 68fa2a8 commit f00d32a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions wasmtime/_func.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,7 @@ def __call__(self, store: Storelike, *params: IntoVal) -> Union[IntoVal, Sequenc
# - we set proper types by reading types from ty
# - but not sure about "Values such as externref and funcref are valid within the store being called"
with enter_wasm(store) as trap:
error = None
ffi.wasmtime_func_call_unchecked(
error = ffi.wasmtime_func_call_unchecked(
store._context,
byref(self._func),
vals_raw_ptr,
Expand Down

0 comments on commit f00d32a

Please sign in to comment.