6 Replies - 12263 Views - Last Post: 17 September 2013 - 08:20 AM

A couple of newbie questions about the .Net framework

Posted 19 November 2012 - 08:05 AM

Hello

I have the following questions about using the .Net framework:

1. To improve performance when starting apps, is it possible to preload the .Net framework at boot time, and keep it in RAM for a few minutes after closing an application so that Windows won't have to fetch the framework from disk?

2. Are .Net apps hard-coded to use a specific version of the .Net, so we must keep all versions installed on disk, or are applications version-agnostic and will simply load the latest framework installed?

3. Is it possible to sign the framework and tell antivirus applications to stop checking it when loading an application?

Thank you.

This post has been edited by littlebigman: 19 November 2012 - 08:06 AM

Replies To: A couple of newbie questions about the .Net framework

Re: A couple of newbie questions about the .Net framework

Posted 19 November 2012 - 08:24 AM

1. No, not really.
2. No, not really. Typically if the machine has the latest version of the framework it is backwards compatible with apps. If you have 4.0 installed and are trying to use a 2.0 app it should work.
3. Yes.

Re: A couple of newbie questions about the .Net framework

Re: A couple of newbie questions about the .Net framework

Posted 17 September 2013 - 06:59 AM

To answer your first question, it's not really the cost of loading the framework from the disk that slows down .Net programs when they launch. You see, .Net programs are compiled by Visual Studio and csc into a language called Intermediate Language or IL. This language isn't quite native, so it can't be run on a computer as it is. Instead, when you launch a .Net program, the IL code in the program is compiled on-the-fly into machine code native to whatever computer you're running it on, provided that platform has the .Net Framework or Mono installed. This compilation is called Just-In-Time compilation or JIT and is usually pretty fast, although not fast enough to avoid a pause when launching an application.