Re:Comparing the C FFI overhead on various languages
by SemanticStrengh on Saturday May 14, 2022 @10:50AM
(#31378494)
An interesting alternative would be to not have any FFI and to use transparent polyglot interop between javascript and c++ via GraalJs /sulong
I'm making my own FFI module for Node.js, Koffi, as a much faster alternative. You can see some benchmark here, to compare with node-ffi-napi: https://www.npmjs.com/package/koffi#benchmarks