JIT

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mike Peretz

    #1

    JIT

    For those of you coding windows Application under the framework you must
    noticed that forms take a performance hit loading the first time. This is
    because of JIT, I was able to fix this behavior by using ngen.exe, but then
    I don't get the same optimization JIT gives me and it is a headache for
    installations (negen has to be called right after the installation).



    According to Microsoft, a function gets JIT to native code the first time it
    is accessed. Is it possible to tell the framework to JIT certain functions
    at runtime without actually calling the functions?



    Basically, I would like to pre-JIT some of my functions so they don't
    experience a performance hit the first time they are called.



    Is this possible?




  • Rob Tillie

    #2
    Re: JIT

    Why is it a problem if everything gets prejitted after install?
    Sure you don't have the optimization of JIT, because nothing has to be
    jitted!

    Greetz,
    -- Rob.

    Mike Peretz wrote:[color=blue]
    > For those of you coding windows Application under the framework you
    > must noticed that forms take a performance hit loading the first
    > time. This is because of JIT, I was able to fix this behavior by
    > using ngen.exe, but then I don't get the same optimization JIT gives
    > me and it is a headache for installations (negen has to be called
    > right after the installation).
    >
    >
    >
    > According to Microsoft, a function gets JIT to native code the first
    > time it is accessed. Is it possible to tell the framework to JIT
    > certain functions at runtime without actually calling the functions?
    >
    >
    >
    > Basically, I would like to pre-JIT some of my functions so they don't
    > experience a performance hit the first time they are called.
    >
    >
    >
    > Is this possible?[/color]


    Comment

    Working...