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
{{ message }}
Repository navigation
build: make build faster (at least on Windows) #12281
Hmm, not sure what the rest of @nodejs/build and @nodejs/platform-windows would think of that, but it sounds like it might be a good idea to me. Fundamentally I think people would be more willing to learn and contribute to a Powershell build script than a batch one, and the tangled mess of gotos in vcbuild.bat doesn't seem particularly contributor-friendly.
Timing example, after applying #12511 (a change in /lib/path.js)
C:\code\node>time <nul&vcbuild >nul&time <nul
The current time is: 14:07:53.76
Enter the new time: The current time is: 14:23:41.10
Enter the new time:
Not that much faster for me on Linux. C++ linking of Debug symbols is brutal. I worked with a program that had a 45 minute non-debug linktime once. Debug couldn't be linked, not enough memory on our machines.
Should this remain open? If so, does it make sense to make it a tracking issue with some check boxes so it's obvious at a glance what parts are done and what parts aren't?
/cc @nodejs/platform-windows now that we've grown in numbers, and at @Trott's behest, I've broken this issue down to several more tractable tasks. I'd be happy if we all pitched in (I've given most of the tasks some thought, but not enough work, so I'd be happy to discuss each of them).
Activity
refack commentedon Apr 8, 2017
/cc @nodejs/build @nodejs/platform-windows
gibfahn commentedon Apr 8, 2017
vcbuild.batcould definitely do with some love, thanks for picking this up @refack!refack commentedon Apr 8, 2017
🙏may the powers that be protect us from the evil that is
cmdscriptingrefack commentedon Apr 8, 2017
Was thinking of rewriting it
PowerShellgibfahn commentedon Apr 8, 2017
Hmm, not sure what the rest of @nodejs/build and @nodejs/platform-windows would think of that, but it sounds like it might be a good idea to me. Fundamentally I think people would be more willing to learn and contribute to a
Powershellbuild script than abatchone, and the tangled mess ofgotos invcbuild.batdoesn't seem particularly contributor-friendly.Or maybe we should write it in js...
refack commentedon Apr 8, 2017
Actually could be
jsmore specificallyJScript. Windows does have a built inJScriptrunnerrefack commentedon Apr 19, 2017
Timing example, after applying #12511 (a change in
/lib/path.js)~16 minutes
sam-github commentedon Apr 19, 2017
Is that faster or slower than the before time?
refack commentedon Apr 19, 2017
Just an example of a recompile after just changing a
.jsfile :(Mean while on "Ubuntu on Windows"
[linux envy]
sam-github commentedon Apr 19, 2017
Not that much faster for me on Linux. C++ linking of Debug symbols is brutal. I worked with a program that had a 45 minute non-debug linktime once. Debug couldn't be linked, not enough memory on our machines.
refack commentedon Apr 19, 2017
Same scenario, just changing a
.jsfile, but build withninja56 seconds. I'm in love with ninja
6 remaining items
Trott commentedon Aug 2, 2017
Should this remain open? If so, does it make sense to make it a tracking issue with some check boxes so it's obvious at a glance what parts are done and what parts aren't?
refack commentedon Aug 2, 2017
Don't triagathon me 👼
Yes, I'll break break this up. I have several better defined sub-tasks in mind.
refack commentedon Aug 2, 2017
/cc @nodejs/platform-windows now that we've grown in numbers, and at @Trott's behest, I've broken this issue down to several more tractable tasks. I'd be happy if we all pitched in (I've given most of the tasks some thought, but not enough work, so I'd be happy to discuss each of them).
tniessen commentedon Aug 3, 2017
I would prefer Powershell over JScript.
refack commentedon Aug 3, 2017
Yep, that's #12310 (I'm 80% there, just 80% more left) - https://gist.github.com/refack/969ecc6642981bfd7caef7d948d78076
jasnell commentedon Jun 25, 2020
There's been no further discussion in years with no clear action here. Closing.