Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate fastcall as possible replacement for node-ffi #4

Open
kleisauke opened this issue Oct 19, 2018 · 1 comment
Open

Investigate fastcall as possible replacement for node-ffi #4

kleisauke opened this issue Oct 19, 2018 · 1 comment

Comments

@kleisauke
Copy link
Member

I came across fastcall, I thought let's open an issue to track this.

There is a a popular dynamic binding library for Node.js:
node-ffi. Then why we need another one could ask? For performance! There is a good 20x-40x
function call performance overhead when using node-ffi compared to hand made C++ native module, which is unacceptable in most cases (see the benchmarks).

fastcall has an almost 100% node-ffi compatible interface, so it could work as a drop-in replacement of node-ffi.

(I can't work on this before February 2019, since I'm currently busy with my internship.)

@jcupitt
Copy link
Member

jcupitt commented Oct 19, 2018

That looks very interesting!

Yes, let's leave this as an enhancement for Feb.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants