all groups > dotnet clr > october 2004 >
You're in the

dotnet clr

group:

CLR queries


CLR queries sunil NO[at]SPAM volcanomail.com
10/27/2004 9:04:36 PM
dotnet clr: Dear All,
We have a client application that takes 15 secs to launch after the
machine has been rebooted...now if I close the application and start
again it takes 6 secs...what is the mystery?
Does this mean:
1. That 9 secs is CLR starting time?
2. OR it is the GAC loading of .net framework dlls?

Is there some other method than NGen where I can load my dlls in
memory so that they can be shared across application domains...putting
dlls in GAC ensures sharing but each time I open an Application does
it compile the dll according to Application domain?
I tired to check this via PerfMon .NET CLR Loading

..NET CLR Loading(_Global_)\Current appdomains"
..NET CLR Loading(_Global_)\Current Classes Loaded"
..NET CLR Loading(_Global_)\Total Classes Loaded"
..NET CLR Loading(_Global_)\Current appdomains"

But could not find a key that says the assembly has been loaded
twice...
How can I pin assemblies so that they can be compiled in memory and
shared across application domains...

Please help...

TALIA

Many Regards
Re: CLR queries Richard Blewett [DevelopMentor]
10/28/2004 12:35:45 AM
I think you're just seeing the result of the second run having cache-hit success with data that is now in the page cache. The first time the application is run everything has to be loaded from disk.

Regards

Richard Blewett - DevelopMentor
http://staff.develop.com/richardb/weblog

Dear All,
We have a client application that takes 15 secs to launch after the
machine has been rebooted...now if I close the application and start
again it takes 6 secs...what is the mystery?
Does this mean:
1. That 9 secs is CLR starting time?
2. OR it is the GAC loading of .net framework dlls?
Re: CLR queries Jack Wright
10/28/2004 9:24:40 PM
Thanks Richard,
How do I cache my assemblies everytime my client restarts his
machine? I cannot use NGen as it requires Admin rights...
What is getting cached? My assemblies or .net assemblies?

Just doing assembly.Load("myassembly.dll") does not compile the
assembly...right? How do I trigger compiling of my assembly
programatically?

Please help...

TALIA

Many Regards
Jack


*** Sent via Developersdex http://www.developersdex.com ***
Re: CLR queries Phil Wilson
10/29/2004 7:52:49 AM
A profiler might help you see where the time is going. You seem to be
assuming it's all JIT and maybe assembly loading, but are you sure?
--
Phil Wilson
[Microsoft MVP-Windows Installer]
[quoted text, click to view]

AddThis Social Bookmark Button