Closed skorokithakis closed 6 years ago
Why 60 MB? The NodeJS executable is around 10M and the source code is like 70 lines! https://github.com/belaviyo/native-client/blob/master/host.js
Install zip file is big as there are two NodeJS executables there (x86, x64)
Ah, I unzipped the zip and saw the cumulative size. Still, I'm not sure that 10 MB is such a small executable. Since it's so small, wouldn't a language like Rust or Go be much more suitable and use almost no memory?
There are mainly two things I like about Node:
Since I am not really familiar with these two programming languages, if you think we can have a similar setup, of course, I prefer to have a smaller and more optimized native side code.
btw, if you already have the NodeJS executable, the size of installed native would be around 10K as NodeJS executable is not being copied.
Ah, yes, in that case you wouldn't get those benefits, I'm afraid. Thanks for the consideration!
This extension seems to require a 60 MB "native client", which I assume is just for receiving a POST and launching a program. Can that not be rewritten in five lines of Go? I'm willing to issue a PR if so.