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 / CLR / July 2006

Tip: Looking for answers? Try searching our database.

Efficiency of Adding References

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Naveen - 24 Jul 2006 20:12 GMT
1) Could someone tell me what are the steps invloved when the CLR loads
private assemblies on application startup (The assemblies are added to a
VS2005 Windows project using the Add References dialog).? Is it JIT loaded or
is it all done at app start up?
2) I guess this is related to question 1 but is there any performance
degradation at app start up if the number of referenced assemblies on the
application is large (35 referenced assemblies in my case)?

Any inputs or pointers to docs will be appreciated.
Thanks.
Naveen
Greg Young - 24 Jul 2006 21:19 GMT
You can see how the assemblies are loaded by using fuslogvw
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cptools/html/cp
grfFusionLogViewerFuslogvwexe.asp

which will show you exactly when the referenced assemblies are loaded. I can
tell you now though that they are added when needed not all at application
startup.

Cheers,

Greg Young
MVP - C#
http://codebetter.com/blogs/gregyoung

> 1) Could someone tell me what are the steps invloved when the CLR loads
> private assemblies on application startup (The assemblies are added to a
[quoted text clipped - 8 lines]
> Thanks.
> Naveen
Naveen - 24 Jul 2006 22:59 GMT
Thanks, Greg, for your reply. I'll take a look at the link. Based on your
reply, what then would be the performance difference (or where) on start up
between 2 applications that have, say, 25 references and a 100 references
added at design time respectively?

> You can see how the assemblies are loaded by using fuslogvw
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cptools/html/cp
grfFusionLogViewerFuslogvwexe.asp
 
[quoted text clipped - 20 lines]
> > Thanks.
> > Naveen
Greg Young - 26 Jul 2006 07:19 GMT
It depends completely on how they are used.

> Thanks, Greg, for your reply. I'll take a look at the link. Based on your
> reply, what then would be the performance difference (or where) on start
[quoted text clipped - 31 lines]
>> > Thanks.
>> > Naveen
Frank Hileman - 27 Jul 2006 15:10 GMT
You might want to download ILMerge from microsoft to see for yourself if a
merged executable is faster. It will merge all your assemblies into one. If
the JIT time dominates it won't make much difference.

Regards,
Frank Hileman

check out VG.net: http://www.vgdotnet.com
Animated vector graphics system
Integrated Visual Studio graphics editor

> 1) Could someone tell me what are the steps invloved when the CLR loads
> private assemblies on application startup (The assemblies are added to a
[quoted text clipped - 8 lines]
> Thanks.
> Naveen

Rate this thread:







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.