Just wondering about the lag...
-
Does anyone know what all the lag is about when I run my C# console apps? It just seems to take ages before it actually start the programs. Is there anything I can do to minimise it? Thanks in advance Windows 98 (win-doze): a 32 bit Extension to a 16 bit Graphical Shell of an 8 bit Operating System originally coded for a 4 bit Processor by a 2 bit company that can't stand one bit of competition.
-
Does anyone know what all the lag is about when I run my C# console apps? It just seems to take ages before it actually start the programs. Is there anything I can do to minimise it? Thanks in advance Windows 98 (win-doze): a 32 bit Extension to a 16 bit Graphical Shell of an 8 bit Operating System originally coded for a 4 bit Processor by a 2 bit company that can't stand one bit of competition.
What you're experiencing is the JIT taking place. To get rid of it you can run ngen.exe on your executable to pre-JIT it. I think to run ngen you might have to sign your exe.
sn -k keyfile.snk
creates your keyfile, the docs tell how to get it signed (I'm not at my PC right now otherwise i could give you the code for it :)) James Sonork ID: 100.11138 - Hasaki "Not be to confused with 'The VD Project'. Which would be a very bad pr0n flick. :-D" - Michael P Butler Jan. 18, 2002 -
What you're experiencing is the JIT taking place. To get rid of it you can run ngen.exe on your executable to pre-JIT it. I think to run ngen you might have to sign your exe.
sn -k keyfile.snk
creates your keyfile, the docs tell how to get it signed (I'm not at my PC right now otherwise i could give you the code for it :)) James Sonork ID: 100.11138 - Hasaki "Not be to confused with 'The VD Project'. Which would be a very bad pr0n flick. :-D" - Michael P Butler Jan. 18, 2002Thanks matey, ngen ran without signing the exe. And now my app runs immediately. I think all this stuff should go into an FAQ somewhere. I wonder how many other people are puzzled by the same stuff. Thanks again, you're a great help Windows 98 (win-doze): a 32 bit Extension to a 16 bit Graphical Shell of an 8 bit Operating System originally coded for a 4 bit Processor by a 2 bit company that can't stand one bit of competition.