The libffi plan cache is coming to GLib
Christian Hergert wired the new ffi_call_plan API into GLib and made GClosure invocation up to 25 percent faster.
Christian Hergert wired the new ffi_call_plan API into GLib and made GClosure invocation up to 25 percent faster.
libffi re-derives the same argument layout on every call. A new API lets a caller build that layout once and reuse it, several times faster, with no writable-executable memory.
Node.js is shipping a built-in node:ffi module powered by libffi — a library I wrote 30 years ago.