Closed
Description
Right now the FFI kernel transformer lowers @FfiNative
s into static fields containing a lazily populated closure that is created by calling a resolution function.
Old natives do not require a static field, so this is in some ways a regression when switching from old natives to ffi natives.
We'd like to avoid usage of static fields for several reasons: It increases the root set in a way that scales as O(num-isolates x num-ffi-natives)
.