473,320 Members | 1,839 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

.NET Internal Workings

I've taken out a portion of my main code and put it in a seperate dll
libaray.

My question is would there be any performance hit by referencing a dll
library as suppose to all in one exe?

Thanks
Howard
Jun 6 '06 #1
11 1689
My question is would there be any performance hit by referencing a dll
library as suppose to all in one exe?


Probably nothing significant.
Mattias

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Jun 6 '06 #2
Hi,

Nothing to lose the sleep for.
--
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Howard" <ho*******@yahoo.com> wrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
I've taken out a portion of my main code and put it in a seperate dll
libaray.

My question is would there be any performance hit by referencing a dll
library as suppose to all in one exe?

Thanks
Howard

Jun 6 '06 #3
"Howard" <ho*******@yahoo.com> wrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
I've taken out a portion of my main code and put it in a seperate dll
libaray.

My question is would there be any performance hit by referencing a dll
library as suppose to all in one exe?
It all gets JIT compiled the same either way.

Best: put only the minimal startup code in your .exe, so you can get going
as quickly as possible (put up a splash screen, start listening to sockets,
or whatever -- this is one legitimate reason for breaking/weakening
encapsulation). Although static constructors don't run until the code in
question is referenced, PEVerify has to analyze the whole assembly unit at
once. Put trusted code in a separate assembly, signed with strong name, and
use GAC, so that PEVerify won't have to run each time -- it caches results
and as long as the assembly isn't modified, it can skip reverification.
WIth unmanaged, use locality to help segment your application (code in the
same library should be used together, to minimize the working set)... I
don't know how this would apply to managed code -- because it gets JIT
compiled, it probably improves locality a lot.

Thanks
Howard

Jun 6 '06 #4
There must be a purpose to split the code. Are you following so of the
patterns here:
http://msdn.microsoft.com/practices/topics/patterns/

chanmm
"Howard" <ho*******@yahoo.com> wrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
I've taken out a portion of my main code and put it in a seperate dll
libaray.

My question is would there be any performance hit by referencing a dll
library as suppose to all in one exe?

Thanks
Howard

Jun 6 '06 #5
It's all interpreted so not really any hit. If you want to improve
performance you'll need to see what is slow (coding technique wise) and
modify accordingly. Avoid using Object type if you can (especially in any
repetative tasks).

"Howard" <ho*******@yahoo.com> wrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
I've taken out a portion of my main code and put it in a seperate dll
libaray.

My question is would there be any performance hit by referencing a dll
library as suppose to all in one exe?

Thanks
Howard

Jun 6 '06 #6
Do you know of any good articles on good and bad programming practices in
..NET and c#?

"Rob R. Ainscough" <ro*****@pacbell.net> wrote in message
news:O0**************@TK2MSFTNGP04.phx.gbl...
It's all interpreted so not really any hit. If you want to improve
performance you'll need to see what is slow (coding technique wise) and
modify accordingly. Avoid using Object type if you can (especially in any
repetative tasks).

"Howard" <ho*******@yahoo.com> wrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
I've taken out a portion of my main code and put it in a seperate dll
libaray.

My question is would there be any performance hit by referencing a dll
library as suppose to all in one exe?

Thanks
Howard


Jun 6 '06 #7
Howard,

Any (insignificant) loss in performance is probably worth the gain in modularity.
If splitting the DLLs makes logical sense to you, go for it.

--
Saad Rehmani / Prodika / Dallas / TX / USA
I've taken out a portion of my main code and put it in a seperate dll
libaray.

My question is would there be any performance hit by referencing a dll
library as suppose to all in one exe?

Thanks
Howard

Jun 7 '06 #8
Howard,

Try Effective C#: 50 Ways to improve your C# (http://www.amazon.com/gp/product/0321245660)

--
Saad Rehmani / Prodika / Dallas / TX / USA
Do you know of any good articles on good and bad programming practices
in .NET and c#?

"Rob R. Ainscough" <ro*****@pacbell.net> wrote in message
news:O0**************@TK2MSFTNGP04.phx.gbl...
It's all interpreted so not really any hit. If you want to improve
performance you'll need to see what is slow (coding technique wise)
and modify accordingly. Avoid using Object type if you can
(especially in any repetative tasks).

"Howard" <ho*******@yahoo.com> wrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
I've taken out a portion of my main code and put it in a seperate
dll libaray.

My question is would there be any performance hit by referencing a
dll library as suppose to all in one exe?

Thanks
Howard

Jun 7 '06 #9
Rob R. Ainscough <ro*****@pacbell.net> wrote:
It's all interpreted so not really any hit.
No, none of it is interpreted.

<snip>
Avoid using Object type if you can (especially in any
repetative tasks).


Care to go into details about that? I *suspect* you're suggesting that
excessive boxing/unboxing should be avoided, but it's not clear.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
Jun 7 '06 #10
Jon,

Beside boxing do you see that often VB programmers take direct the object
for everything while there is no problem to use direct the right class,

They rely on the late building (reflection) method build inside VBNet.

Probably something that comes from VBS.

Cor

"Jon Skeet [C# MVP]" <sk***@pobox.com> schreef in bericht
news:MP************************@msnews.microsoft.c om...
Rob R. Ainscough <ro*****@pacbell.net> wrote:
It's all interpreted so not really any hit.


No, none of it is interpreted.

<snip>
Avoid using Object type if you can (especially in any
repetative tasks).


Care to go into details about that? I *suspect* you're suggesting that
excessive boxing/unboxing should be avoided, but it's not clear.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too

Jun 7 '06 #11
Cor Ligthert [MVP] <no************@planet.nl> wrote:
Beside boxing do you see that often VB programmers take direct the object
for everything while there is no problem to use direct the right class,

They rely on the late building (reflection) method build inside VBNet.

Probably something that comes from VBS.


I'd say that's another reason to turn Option Strict On more than
anything else :)

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
Jun 7 '06 #12

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

Similar topics

8
by: Carlos J. Quintero | last post by:
Hi, As you know the current keywords "protected internal" (C#) or "Protected Friend" (VB.Net) means "Protected Or internal" (C#) or "Protected Or Friend" (VB.Net), that is, the member is...
1
by: Ayende Rahien | last post by:
reparing resources... Updating references... Performing main compilation... error CS0583: Internal Compiler Error (0xc0000005 at address 53168B12): likely culprit is 'BIND'. An internal...
4
by: David Sworder | last post by:
Consider the following line of code (it's not important what it does): resp.DocItem=Relations.SelectDocItems_BySearchString(req.SearchPhrase); It turns out that this line is in error. The...
2
by: Chien Lau | last post by:
I frequently define internal UserControl-derived classes in my WinForms apps: internal class MyUserControl:UserControl{ ... } I'll often need to embed these controls in a Form, whose class...
2
by: Kolozs, Ãron | last post by:
Hi everybody, The C# compiler reports a Compiler Error CS0052 in the following situation: I declared a type marked as "internal": namespace MyNamespace { internal class MyInteralClass
3
by: al.cpwn | last post by:
do static and inline functions or members have internal linkage? I have been reading this newsgroup on google and found conflicting ideas. Can someone please help me understand why in some places...
9
by: JT | last post by:
Here is the overall structure I will be referring to: End-program ProvideWorkFlow.dll Forms and methods that properly manipulate calls to methods in AccessUtils AccessUtils (a web service)...
1
by: digz | last post by:
Hi, The std::auto_ptr 14.4.2 in Stroustrup ,the book talks about "std::auto_pt_ref is to implement destructive copy semantics" , after some more search I found that auto_ptr can be returned from...
13
by: Clive Dixon | last post by:
I am refactoring some code to move some base classes into a separate assembly. One of these base classes has a member property which is 'protected internal'. However when I move these base classes...
9
by: dylan.miller | last post by:
I'm having trouble understanding the internal access modifier. There are many classes in my assembly that should not be accessible outside of the assembly. I've used the internal access modifier...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.