Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Running exact piece of code alone is 7 times faster in c
Message
De
01/05/2005 13:25:02
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01009816
Message ID:
01010019
Vues:
26
>But indeed, as you said it is not an unbaised comparison. The delay is caused by calling a function in general, in fact the class function runs in this case almost as fast as a standalone function.
>
>Still then I find calling a function in a loop "very" slow. I know that I need to use this check a lot for a specific application.

I can't help but wonder if part of the "problem" isn't the session context switching. You're calling a method in a Session object from code outside that object and therefore in a different datasession. My sense is that's an expensive approach.

It could be interesting to try adding a method to the class itself that does the iterative call, now to THIS.ReadLXTables(), and see what difference that makes.

-- Randy
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform