TIP: Click on subject to list as thread! ANSI
echo: aust_c_here
to: Paul Edwards
from: Frank Adam
date: 1996-08-23 03:56:04
subject: Passing a var.

G'Day Paul,
 
-=> Quoting Paul Edwards to Frank Adam <=-
 FA> Does passing a pointer to a function effect performance, as opposed to
 FA> having the contents of said pointer global or local ? 

 PE> IMO, having a local function will ALWAYS be faster than or equal to
 PE> the speed  of a global function which will ALWAYS be faster than a 
 PE> pointer to a function.  Basically, having a local (and 
 PE> preferably static) function means AT COMPILE TIME, the 
That was going to be my next question actually :-)
I didn't word the original question all that well, i should've said 
passing a VARIABLE between a number of functions as opposed to the 
functions using a global. I figure passing a variable would have to take 
a few cycles, unless the compiler does something magical. 

 
  L8r Frank (fadam{at}ozemail.com.au).
  
___ Blue Wave/DOS v2.21

--- Maximus 3.01
@Via illegal copy of FastEcho at 3:50/99
* Origin: The Software Parlour (3:635/544)
SEEN-BY: 50/99 620/243 623/630 632/349 635/503 544 727 711/401 409 410 413
SEEN-BY: 711/430 808 809 932 934 712/515 713/888 714/906 800/1
@PATH: 635/544 50/99 711/808 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.