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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top