Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Speed: Methods vs. External Functions?
Message
From
07/05/1997 15:07:36
Matt Mc Donnell
Mc Donnell Software Consulting
Boston, Massachusetts, United States
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00030888
Message ID:
00031192
Views:
50
>From a technical standpoint, how could calling an external function possibly be faster than using a function directly available to the form? Does anyone know how VFP compiles these two types of functions?
>

I think it has to do with inheritance and sequential searching. I hope I don't sound too much like an idiot expaining this. :-) And of course, I could be wrong...but here goes..

An external function is loaded into memory and foxpro 'knows' where to find it. Whereas a method of an object is 'buried' within the object reference. Foxpro needs more time to 'find' the method before it can run, particularly if it's an inherited method. I also believe that this means that the two types of functions run closer, performance wise, in an execuatble, since at that point, both types are compiled. Maybe Todd could clarify that...

Someone correct me if I'm missing the boat.
Matt McDonnell
...building a better mousetrap with moldy cheese...
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform