Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Shutting Down the Computer
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00532885
Message ID:
00533219
Views:
22
>>Since my name has been invoked...I pointed it out because of the extra overhead that the module would incur. If a routine, especially one involving a large number of iterations, repeatly referenced the value,it could improve performance.< s >
>
>Really? It's a pre-processor directive. The actual value should just get compiled into the program, and no look-up should be involved. Thanks, George, I was hoping to spend my morning doing something productive, but now I have some benchmarking to do. :-)

Apparently so, Mike. A while back, some of us did some tests, and they revealed that any #DEFINE (I keep wanting to refer to it as a symbolic constant< g >) involving a function is evaluated at run-time. The theory (at least mine) is that the compiler inserts the function reference wherever the symbol appears.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform