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.
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.