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 da545aa commit 68fa2a8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions wasmtime/_func.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,11 @@ def _init_call(self, ty):
self._ty = ty
ty_params = ty.params
ty_results = ty.results
self._params_str = (str(i) for i in ty_params)
self._results_str = (str(i) for i in ty_results)
self._results_str0 = str(ty_results[0])
params_n = len(ty_params)
results_n = len(ty_results)
self._params_str = (str(i) for i in ty_params)
self._results_str = (str(i) for i in ty_results)
self._results_str0 = str(ty_results[0]) if results_n else None
self._params_n = params_n
self._results_n = results_n
n = max(params_n, results_n)
Expand Down

0 comments on commit 68fa2a8

Please sign in to comment.