Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Performance / January 2005

Tip: Looking for answers? Try searching our database.

Assembly.LoadFrom and machine restart

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jack Wright - 23 Dec 2004 14:13 GMT
Dear All,
  I have developed a client .net application that gets launched via
No Touch Deployment...using the Assembly.LoadForm method...I have a
dll xrt.dll for which I have not maintained versioning...
When I launch my application after a machine reboot (xrt.dll already
present on client machine) it takes 2 seconds to load this dll...I
assume this is because I have not maintained versioning of this dll
and hence it downloads this dll again...but if I close my application
and start it again, this dll gets loaded in 300ms seconds...how come
it is fast the second time? My guess is it should have still taken 2
seconds...can someone explain wot is MS doing here...
I swear the following...:-)
 1. xrt.dll was not changed in the server.
 2. xrt.dll was already present on the client machine. (I ran the
application once and then restarted my client machine).

Please help...I want to enjoy my X'Mas...:-)

TALIA
Many Regards
Jack
Chris, Master of All Things Insignificant - 23 Dec 2004 19:49 GMT
The first time the dll is run on the machine the JIT Compiler compiles the
dll.  The second time your run it, it is already compiled; it looks to see
that a new version doesn't exist first. Whenever you restart the dll have to
be recompiled.  There is a way to "pre-compile" the .net dll on that
machine, but I don't remember the name of the exe to do it.

Chris

> Dear All,
>   I have developed a client .net application that gets launched via
[quoted text clipped - 17 lines]
> Many Regards
> Jack
Michael Pearson - 27 Dec 2004 22:05 GMT
ngen to "pre-compile"

Michael
> The first time the dll is run on the machine the JIT Compiler compiles the
> dll.  The second time your run it, it is already compiled; it looks to see
[quoted text clipped - 25 lines]
> > Many Regards
> > Jack
Sherif ElMetainy - 04 Jan 2005 18:38 GMT
Hello

Most probably your assembly is cached in memory by windows the first time,
and in the later runs, it is loaded from memory. You can try this any
application (Outlook for example) and watch the hard disk led if first and
second run, you will notice a difference.

Best regards,
Sherif

> Dear All,
>    I have developed a client .net application that gets launched via
[quoted text clipped - 17 lines]
> Many Regards
> Jack

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.