Skip to content

Commit 52a0f1d

Browse files
FIXES #137: make calling wasm from python 7x faster
1 parent d0dcca2 commit 52a0f1d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

wasmtime/_func.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@
1616

1717
class Func:
1818
_func: ffi.wasmtime_func_t
19+
_params_n: int
20+
_results_n: int
21+
_params_str: list[str]
22+
_results_str: list[str]
23+
_vals_raw_type: ctypes.Array[wasmtime_val_raw_t]
1924

2025
def __init__(self, store: Storelike, ty: FuncType, func: Callable, access_caller: bool = False):
2126
"""

0 commit comments

Comments
 (0)