Cost of using functions [vb.net]

  • Thread starter Thread starter Jean-Paul Mars via DotNetMonster.com
  • Start date Start date
J

Jean-Paul Mars via DotNetMonster.com

I was wondering if the use of functions decreases performance over placing
all code after each other.

For example: Instead of having function write anything to the screen using
Response.Write(strMessage), I usually call a function DisplayMessage
(strMessage), but now I'm wondering if this has any impact on the
performance, or does the Framework recode (or how it is called) this to
effecient code anyway.

The main advantage is that, if I decide that those functions should not
write anything to screen, I just have to disable that in only one place.
Plus readability is increased :)

Merely curious, as it is not really a performance issue, I'm wondering what
the groups thoughts are about this.
 
Unlesss one is passing numerous and complex (or maybe by val/structs) I
do not believe there is a noticeable performance decrease.if one had
more questions i would try an application profiler but off the tip of
my head no
 
Back
Top