473,503 Members | 10,322 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

Nov 17 '05 #1
2 2257
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 http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 17 '05 #2
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
!
!
Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
3027
by: Kenneth McDonald | last post by:
Now that I'm back to Python and all the new (to me) cool features, I find I'm using properties a lot, i.e. I'm defining: foo = property(fset=..., fget=...) for a number of properties, in many...
7
9233
by: Michael Andersson | last post by:
Hi! Does the use of exception handling induce a performance penalty during the execution of non exception handling code? Regards, /Michael
12
17274
by: Fred | last post by:
Has anyone a link or any information comparing c and c++ as far as execution speed is concerned? Signal Processing algorithms would be welcome... Thanks Fred
4
3120
by: zzfreddybb | last post by:
We are using HP aCC compiler on a HP Itanium box ( 11.23) We are having some severe performance hits using exception handling ( try/catch ) scenarios. The online aCC documentation says: HP...
51
3503
by: Jojo | last post by:
Is there any way to get to the left-hand side of an operator? Consider the following (this is not meant to be perfect code, just an example of the problem): class Matrix { public: int data;...
2
1971
by: Marty | last post by:
Hi, I would like to know about DLL and performance gain/penalty in an application. Let's say that I have a very big application and for component portability and easy maintenance, we fragmented...
36
2437
by: mrby | last post by:
Hi, Does anyone know of any link which describes the (relative) performance of all kinds of C operations? e.g: how fast is "add" comparing with "multiplication" on a typical machine. Thanks!...
11
2630
by: Paul H | last post by:
Suppose I have a table called tblPeople and I want a field to illustrate whether each person prefers cats or dogs. I could do it one of three ways. 1. A plain text field Create a text field in...
2
1741
by: william.david.anderson | last post by:
Hi there, I'm thinking of using a PREPARE statement inside a stored procedure, but am wondering about the performance penalty associated with calling PREPARE multiple times. Below is an...
2
1661
by: Sune | last post by:
Hi all, there are several situations where integer promotion is performed in C and I need to confirm my understanding of it. Let's contain the discussion to workstation/server CPUs of 32/64...
0
7207
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7294
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7361
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7015
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7470
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5602
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5026
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
1523
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
403
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.