Re: .NET JITTing - AOT compiling - Choice?
From: Jon Shemitz (jon_at_midnightbeach.com)
Date: 02/14/04
- Next message: Admiral Jake: "Re: Does your company recognize President's Day?"
- Previous message: Larry Drews: "Re: Delphi 8.NET Update"
- In reply to: Curt Krueger: ".NET JITTing - AOT compiling - Choice?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 13 Feb 2004 15:02:26 -0800
Curt Krueger wrote:
> Why the only choice to JIT? Why not have the installer compile the app upon
> install or at least have a choice.. If you know the app is going to be
> installed and ran indefinitely on a specific platform, why not just compile
> the app up front when it's installed?
You do have a choice - it's called NGEN. You can opt to compile on
installation. Otoh, if the user moves his files to a new machine, your
app has now been NGEN-ed for the old CPU.
More importantly, NGEN doesn't save that much. According to Danny
Thorpe (who should know) the jitter compiles about as fast as D7.
That's compiles; not compiles and and links. You know how fast Delphi
compiles: It's definitely a lot faster than a hard disk doing demand
loading! So, jitting really isn't a huge hit on top of demand loading.
(All Windows apps are sluggish on start-up; with .NET it's just a bit
more so.)
All that NGEN saves you is that modest load cost. But, it's not free.
There's some indirection voodoo going on that means that calls OUT of
an NGEN-ed assembly cost more (about 8% more) than calls out of a
jitted assembly. (Calls within an NGEN-ed assembly are slightly
cheaper than (some) calls within a jitted assembly.) Most .NET
assemblies make a LOT of inter-module calls - System. this and System.
that - so NGEN can actually cost a long-running app more than it
saves.
-- programmer, author http://www.midnightbeach.com and father http://www.midnightbeach.com/hs
- Next message: Admiral Jake: "Re: Does your company recognize President's Day?"
- Previous message: Larry Drews: "Re: Delphi 8.NET Update"
- In reply to: Curt Krueger: ".NET JITTing - AOT compiling - Choice?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|