From 52a0f1d5c453908f404f62c9286cc0137ade5042 Mon Sep 17 00:00:00 2001 From: Muayyad alsadi Date: Sun, 26 Mar 2023 01:59:12 +0300 Subject: [PATCH] FIXES #137: make calling wasm from python 7x faster --- wasmtime/_func.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wasmtime/_func.py b/wasmtime/_func.py index 084458b8..f8c709b6 100644 --- a/wasmtime/_func.py +++ b/wasmtime/_func.py @@ -16,6 +16,11 @@ class Func: _func: ffi.wasmtime_func_t + _params_n: int + _results_n: int + _params_str: list[str] + _results_str: list[str] + _vals_raw_type: ctypes.Array[wasmtime_val_raw_t] def __init__(self, store: Storelike, ty: FuncType, func: Callable, access_caller: bool = False): """