Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OOP : Method Call slower than function call
Message
De
22/09/1998 07:22:37
 
 
À
21/09/1998 14:23:01
Dave Nantais
Light speed database solutions
Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00139174
Message ID:
00139410
Vues:
23
>it was stated that a method call is UP TO 7 times slower than a function call. What conditions make the method call that much slower.
>Are there certain guidelines i can follow to minimize the time required for a method call ?
>
>Also if disk access is the slowest part of the process at say 10000 times slower than executing a method call or 70000 times slower than
>making a function call then isn't the difference in speed irrelevant?
>

Not necessarily. I use VFP at times to generate binary data, and if I have to call data conversion routines to convert integers to a 4 byte long DWORD (or worse, convert a 6 character Canadian Postal Code to a continuous integer representation) it takes measurable time - especially when you make the same call a few hundred thousand times...

FWIW, when things get that bad, i usually rewrite the conversion functions in C and take the hit for calling a .DLL - it's faster.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform