HighTechTalks DotNet Forums  

Assemblies

Dotnet Framework (Performance) microsoft.public.dotnet.framework.performance


Discuss Assemblies in the Dotnet Framework (Performance) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Demetri
 
Posts: n/a

Default Assemblies - 02-24-2006 , 09:58 AM






I have a few questions regarding assemblies.

1. What peformance overhead is involved in simply referencing an assembly?
2. Would it be better on performance to have re-usable code library in ONE
assembly or logically broken out into separate assemblies?
3. What performance overhead is involved when the application loads an
assembly that is referenced?

--
-Demetri

Reply With Quote
  #2  
Old   
Scott M.
 
Posts: n/a

Default Re: Assemblies - 02-26-2006 , 10:33 AM






You should also consider whether the referenced assemblies are registered in
the GAC or not. GAC assemblies only need to load once whereas private
assemblies load per application that uses it.


"Vadym Stetsyak" <vadym_s (AT) ukr (DOT) net> wrote

Quote:
Hello, Demetri!

D> 1. What peformance overhead is involved in simply referencing an
D> assembly?

Afaik a reference to assembly will look like additional record in some
meta data table, AFAIK assembly will not be loaded until code will
reference type contained in it.

D> 2. Would it be better on performance to have re-usable code library in
D> ONE assembly or logically broken out into separate assemblies?

It depends on quantity of assemblies. However, if there will be multiple
assemblies the overhead will be greater as they will comsume more memory
( there exists system info about every loaded assembly ). OTOH if use one
big assembly then time that takes this assembly to load may hurt
performance ( on application start ).

D> 3. What performance overhead is involved when the application loads an
assembly
D> that is referenced?

Talked about that earlier...

--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com



Reply With Quote
  #3  
Old   
Willy Denoyette [MVP]
 
Posts: n/a

Default Re: Assemblies - 02-28-2006 , 05:37 PM




"Scott M." <s-mar (AT) nospam (DOT) nospam> wrote

Quote:
You should also consider whether the referenced assemblies are registered
in
the GAC or not. GAC assemblies only need to load once whereas private
assemblies load per application that uses it.


This is not true, unless they are NGen'd assemblies.

Willy.

Quote:
"Vadym Stetsyak" <vadym_s (AT) ukr (DOT) net> wrote in message
news:eERKyofOGHA.344 (AT) TK2MSFTNGP11 (DOT) phx.gbl...
Hello, Demetri!

D> 1. What peformance overhead is involved in simply referencing an
D> assembly?

Afaik a reference to assembly will look like additional record in some
meta data table, AFAIK assembly will not be loaded until code will
reference type contained in it.

D> 2. Would it be better on performance to have re-usable code library
in
D> ONE assembly or logically broken out into separate assemblies?

It depends on quantity of assemblies. However, if there will be multiple
assemblies the overhead will be greater as they will comsume more memory
( there exists system info about every loaded assembly ). OTOH if use
one
big assembly then time that takes this assembly to load may hurt
performance ( on application start ).

D> 3. What performance overhead is involved when the application loads
an
assembly
D> that is referenced?

Talked about that earlier...

--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com





Reply With Quote
  #4  
Old   
Scott M.
 
Posts: n/a

Default Re: Assemblies - 02-28-2006 , 10:20 PM



Or... This is true, unless they're not NGEN'd.


"Willy Denoyette [MVP]" <willy.denoyette (AT) telenet (DOT) be> wrote

Quote:
"Scott M." <s-mar (AT) nospam (DOT) nospam> wrote in message
news:uZABvnuOGHA.344 (AT) TK2MSFTNGP11 (DOT) phx.gbl...
| You should also consider whether the referenced assemblies are
registered
in
| the GAC or not. GAC assemblies only need to load once whereas private
| assemblies load per application that uses it.
|
|

This is not true, unless they are NGen'd assemblies.

Willy.

| "Vadym Stetsyak" <vadym_s (AT) ukr (DOT) net> wrote in message
| news:eERKyofOGHA.344 (AT) TK2MSFTNGP11 (DOT) phx.gbl...
| > Hello, Demetri!
|
| > D> 1. What peformance overhead is involved in simply referencing an
| > D> assembly?
|
| > Afaik a reference to assembly will look like additional record in some
| > meta data table, AFAIK assembly will not be loaded until code will
| > reference type contained in it.
|
| > D> 2. Would it be better on performance to have re-usable code library
in
| > D> ONE assembly or logically broken out into separate assemblies?
|
| > It depends on quantity of assemblies. However, if there will be
multiple
| > assemblies the overhead will be greater as they will comsume more
memory
| > ( there exists system info about every loaded assembly ). OTOH if use
one
| > big assembly then time that takes this assembly to load may hurt
| > performance ( on application start ).
|
| > D> 3. What performance overhead is involved when the application loads
an
| > assembly
| > D> that is referenced?
|
| > Talked about that earlier...
|
| > --
| > Regards, Vadym Stetsyak
| > www: http://vadmyst.blogspot.com
|
|





Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.