Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Speed: Methods vs. External Functions?
Message
From
07/05/1997 13:22:14
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:
00031175
Views:
44
>>Ack, external functions are actually _faster_ than methods? Can anyone >confirm this?
>
>I just did a test that simply called each of a method, fucntion in proc file and prg function. The functions return .t.. I called them 10,000 times each and the times ( for 10,000 calls) were;
>
> Method 0.6 Avg
> Procedure file func 0.2 avg
> PRG func 0.2 avg
>
>I would conclude that although there is a difference between the calling of methods vs procs, it is insignificant as it is less than 0.4 seconds for 10,000 calls.
>
>JimBooth

Almost half a second is insignificant?

My experience is that users start complaining when app processes take more than a few seconds. (They're used to word-processors [s]). Call a number of functions repeatedly and that half second adds up quick.
Matt McDonnell
...building a better mousetrap with moldy cheese...
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform