mongodb-js / boxednode

📦 boxednode – Ship a JS file with Node.js in a box
Apache License 2.0
631 stars 10 forks source link

[Question] is there any way to make the process faster? #15

Closed saostad closed 3 years ago

saostad commented 3 years ago

Hi, thanks for the package. I have windows 10 laptop with 32GB of Ram, CPU Core i7 - 8750H, and SSD disk, but it takes forever to compile the .exe file for me. is there any way to make the process faster?

addaleax commented 3 years ago

I don't think there's anything you can do that's specific to boxednode. You might be able to use a caching compiler, I know there's options for that also for cl.exe (the Windows compiler that boxednode uses).

jeffrson commented 3 years ago

@addaleax Now when there's a compiled binary node, how can it be used in subsequent packaging tries (after changing the source) without unpacking nodes' source and going through all the make steps again and again?

addaleax commented 3 years ago

@jeffrson If you’re on the same machine, or cache the compilation directory, then I think this should work fine (except maybe on Windows). If there’s some specific problem, feel free to open a new ticket :)

jeffrson commented 3 years ago

Yes, this is on Windows. So I will try to run it on Linux and compare. Thanks!