Open sjindel-google opened 5 years ago
Currently we generate a new FFI trampoline function on every call to asFunction. We should cache and re-use trampolines for the same native signatures.
asFunction
/cc @mkustermann
Martin pointed out that we can re-use the logic for caching inner closures per-callsite.
Currently we generate a new FFI trampoline function on every call to
asFunction
. We should cache and re-use trampolines for the same native signatures.