Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

"vcbuild.bat release test" very slow after building in MSVS #1909

Closed
ry opened this issue Oct 18, 2011 · 8 comments
Closed

"vcbuild.bat release test" very slow after building in MSVS #1909

ry opened this issue Oct 18, 2011 · 8 comments
Assignees
Milestone

Comments

@ry
Copy link

ry commented Oct 18, 2011

cc @DrPizza @igorzi

often I will compile Node in MSVS then go to test it in cmd.exe and type "vcbuild.bat release test" but this seems to relink the binary - it takes almost 5 minutes under VMware.

@ghost ghost assigned piscisaureus Oct 18, 2011
@DrPizza
Copy link

DrPizza commented Oct 21, 2011

We can turn off LTCG, which will make linking much much faster. However, LTCG is recommended (and on by default) for V8, which is one of the reasons I enabled it.

One thing that V8 does is to allow LTCG to be overridden at the command line by turning a condition off. It might be possible to do something along those lines.

@DrPizza
Copy link

DrPizza commented Oct 21, 2011

Oh I should read more closely. So it's building and linking in MSVS and then rebuilding from the command line?

As long as the same settings are being used each time, that shouldn't really happen. Strange.

@igorzi
Copy link

igorzi commented Oct 21, 2011

I can't reproduce this. @piscisaureus is it possible that you compiled debug node in VS, and then ran "vsbuild.bat release test"?

@ry
Copy link
Author

ry commented Oct 21, 2011

@igorzi - no it was compiled as release in VS

@igorzi
Copy link

igorzi commented Oct 22, 2011

@ry can you reliably reproduce it? what are the exact steps? I'll also try to repro with VC express.

@ry
Copy link
Author

ry commented Oct 24, 2011

Bert explained to me that it is not linking but "checking for changes". It's still quite slow - but perhaps unavoidable.

@igorzi
Copy link

igorzi commented Oct 25, 2011

Hmm, 5 minutes is too long though. It really shouldn't take that long.
You could also pass "nobuild" flag to vcbuild to completely avoid the build:
"vcbuild.bat release test nobuild"

@ry
Copy link
Author

ry commented Nov 3, 2011

closing. using nobuild is a fine work around for my slow vmware setup

@ry ry closed this as completed Nov 3, 2011
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants