libffi 3.7 introduces reusable call plans, which allows for the per-call setup overhead to be precomputed from an initialised cif and re-used for subsequent calls.
libffi/libffi@3cc6beb
All of our wrapped functions have fixed call signatures, so this seems like something we could leverage.
@nodejs/ffi
libffi 3.7 introduces reusable call plans, which allows for the per-call setup overhead to be precomputed from an initialised cif and re-used for subsequent calls.
libffi/libffi@3cc6beb
All of our wrapped functions have fixed call signatures, so this seems like something we could leverage.
@nodejs/ffi