You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, thanks to the developers, I found fastcall very convenient to use, it's a greate lib. But I encoutered a strange issue recently. I'm using fastcall on win10 to invoke my DLL in node.js, in the DLL there are funcitons doing some time-consuming operations. I found some strange issues when I test them using different test tools.
Mocha
The DLL function invoked all right in DLL-layer, but it takes very long time to swith to node enviroment and to go through the rest of the test case.
Jest
The DLL function invoked all right in DLL and node layer, so the test case goes well.
Hi, thanks to the developers, I found fastcall very convenient to use, it's a greate lib. But I encoutered a strange issue recently. I'm using fastcall on win10 to invoke my DLL in node.js, in the DLL there are funcitons doing some time-consuming operations. I found some strange issues when I test them using different test tools.
The DLL function invoked all right in DLL-layer, but it takes very long time to swith to node enviroment and to go through the rest of the test case.
The DLL function invoked all right in DLL and node layer, so the test case goes well.
ffi works well for both mocha and jest
My enviroment:
I wrote a sample here:
https://github.com/ximinchao/FastCallTest
DLL code
node.js code
mocha test code (invoke very slow, causes timeout)
jest test code (test ok, takes about 6-7 seconds on my computer)
Thank you for your solutions~
The text was updated successfully, but these errors were encountered: