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 Apr 2, 2023
1 parent 383cad6 commit dc3d697
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion wasmtime/_func.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,10 @@ def val_setter(dst, attr, val):
# TODO: validate same val._func.store_id
casted = val._func.index
else:
casted = val
if isinstance(val, Val):
casted = getattr(val._raw.of, attr)
else:
casted = val
setattr(dst, attr, casted)

class Func:
Expand Down

0 comments on commit dc3d697

Please sign in to comment.