3 ms·
Does anyone know what is the difference between using this neon vs using node-ffi[1]? [1]https://github.com/node-ffi/node-ffi https://github.com/node-ffi/node-
by gbuk2013 11y ago
Does anyone know what is the difference between using this neon vs using node-ffi[1]?
[1]https://github.com/node-ffi/node-ffi https://github.com/node-ffi/node-ffi
- blaenk 11y agoNeon is for creating native Node modules in rust, which are libraries that use the Node addon API [1]. node-ffi seems to be for adding a bridge between an existing non-Node module dynamic library and node, which at the very least seems to incur some non-negligible overhead; see the "Call Overhead" section of your link. [1]: https://nodejs.org/api/addons.html https://nodejs.org/api/addons.html