Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Just wondering about the lag...

Just wondering about the lag...

Scheduled Pinned Locked Moved C#
csharplinuxquestion
3 Posts 2 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    TheFLC
    wrote on last edited by
    #1

    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.

    J 1 Reply Last reply
    0
    • T TheFLC

      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.

      J Offline
      J Offline
      James T Johnson
      wrote on last edited by
      #2

      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

      T 1 Reply Last reply
      0
      • J James T Johnson

        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

        T Offline
        T Offline
        TheFLC
        wrote on last edited by
        #3

        Thanks 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.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups