Hello Vienna,
Based on my experience, once the library is loaded by .NET framework, it resides in memory and there should not be
obvious performance penalty from it.
I am glad to recommend one good article to you.
"Performance Tips and Tricks in .NET Applications"
http://msdn.microsoft.com/library/en...asp?frame=true
I believe it could help you much in tuning your .net applications. Thanks.
Best regards,
Yanhong Huang
Microsoft Online Partner Support
Get Secure! -
www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
!Newsgroups: microsoft.public.dotnet.framework.aspnet
!Subject: Is there Performance Penalty for multiple cross-assembly-calls?
!From: "Peter Bär" <x@x.com>
!Message-ID: <Xn**********************************@213.229.60.1 02>
!User-Agent: Xnews/5.04.25
!NNTP-Posting-Host: 62.99.176.82
!Date: 16 Jul 2003 21:57:05 +0200
!X-Trace: e-post.inode.at 1058385425 62.99.176.82 (16 Jul 2003 21:57:05 +0200)
!Lines: 32
!Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed 00.sul.t-online.de!t-online.de!peernews3.colt.net!
news0.de.colt.net!news-fra1.dfn.de!newscore.univie.ac.at!e-post.inode.at!not-for-mail
!Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:159708
!X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
!
!A Question to the C#/.Net Gods of this forum:
!
!
!are there performance penalties when i compile (C#, FW1.1, ASP.NET,
!Studio2003) a central baseclass in a different assembly than all the
!derived classes?
!
!f.i. ive got a class dbobject i project "Basesupport", compiles to
!Basesupport.dll.
!From dbobject i derive about 100 classes, thy all are located in Project
!XYBiz, so they are compiled to XYBiz.dll.
!
!doughter classes make heavy use of properties, methods and attributes from
!the mother class (about 100 per method call)
!
!Now, i dont know whether that design wouldnt produce a performance penalty
!for jumping between user dlls, switching contexts, dlls, whatever.
!
!Approximation one aspx page (resulting in 1 database call(storeproc-
!SQLserver)) uses 5 objects, 3 methodcalls each, with - as i said, about 100
!cross-assembly-calls. Summed up, thats about 1500 cross-assembly-calls.
!
!Ok, i know, i know, "code is fast and db is slow, and therefor dont think
!about performance, cause db is bottleneck anyways".
!
!But i just wann aknow in principle whether there is no, just a tiny or
!noticeable performance penalty from Framework & IIS, when they have to
!ping-pong between two user-dlls 1500 times per page call...
!
!Many thanks in advance &
!cheers from Vienna
!
!