Ask a Question related to ASP.NET General, Design and Development.
-
Peter Bär #1
Is there Performance Penalty for multiple cross-assembly-calls?
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
Peter Bär Guest
-
Locking on multiple asynchronous calls
Several parts of our Flex application require loading multiple types of data on initialization of a component. We use RemoteObjects to get data from... -
Penalty of using MEDIUMTEXT?
My text is about 30k bytes to 200k bytes, mostly fall between 100k bytes. TEXT is 65K Charators, so it is 130K bytes. MEDIUMTEXT is much larger ... -
Reading the public key inside a strongly signed assembly from the assembly itself???
Hello, is it possible to programmatically read (and how) the public key that is embedded into an assembly that has been strongly signed??? What... -
Performance of web method calls
Hi I have been timing a client application's response time when invoking a simple web method (it simply returns). A single test client invokes... -
how to share server control assembly among multiple programer enviroment?
Is there a way to share server control dll (control is still under development) in toolbox without having to copy that dll to client computers? I... -
Natty Gur #2
Re: Is there Performance Penalty for multiple cross-assembly-calls?
Hi,
I don’t think that any difference will be between the calls. There will
be difference in the class loading but not in function calls. after the
assembly load to the caller space there wont be any difference between
calling class in the same assembly or other assembly calls).
Natty Gur, CTO
Dao2Com Ltd.
28th Baruch Hirsch st. Bnei-Brak
Israel , 51114
Phone Numbers:
Office: +972-(0)3-5786668
Fax: +972-(0)3-5703475
Mobile: +972-(0)58-888377
Know the overall picture
*** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
Don't just participate in USENET...get rewarded for it!
Natty Gur Guest
-
Yan-Hong Huang[MSFT] #3
RE: Is there Performance Penalty for multiple cross-assembly-calls?
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"
[url]http://msdn.microsoft.com/library/en-us/dndotnet/html/dotnetperftips.asp?frame=true[/url]
I believe it could help you much in tuning your .net applications. Thanks.
Best regards,
Yanhong Huang
Microsoft Online Partner Support
Get Secure! - [url]www.microsoft.com/security[/url]
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: <Xns93BADE56B1767fiowenbvn9u0wkfebkwe@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
!
!
Yan-Hong Huang[MSFT] Guest



Reply With Quote

