Is there Performance Penalty for multiple cross-assembly-calls?

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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...
    2. 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 ...
    3. 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...
    4. 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...
    5. 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...
  3. #2

    Default 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

  4. #3

    Default 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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139