I have no idea how fast a Pentium 4 should compile that "hello world" program, but 15 seconds strikes me as pretty slow. I once had similar speed problems with a VS 2010 Beta and the problem turned out to be that Visual Studio and the F# compiler weren't yet properly NGENed.
Normally, the Visual Studio install should make sure that everything gets NGENed, but maybe something went wrong. You can check if the F# compiler was NGENed with the following command in a console window with admin rights:
cd "C:Program FilesFSharp-2.0.0.0in"
c:windowsMicrosoft.NETFrameworkv4.0.30319
gen.exe display fsc.exe
If the result of that shows that the native image of fsc.exe
is still pending, you could force the compilation with:
c:windowsMicrosoft.NETFrameworkv4.0.30319
gen.exe executeQueuedItems
Note: I'm not sure which version of the F# compiler you're using exactly. The one used by the full install of VS2010 is the one in C:Program FilesMicrosoft F#v4.0
(or C:Program Files (x86)Microsoft F#v4.0
on 64-bit machines). So, if you use that one, you have to cd
into that folder instead of the C:Program FilesFSharp-2.0.0.0in
folder.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…