Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Running exact piece of code alone is 7 times faster in c
Message
From
01/05/2005 13:25:02
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01009816
Message ID:
01010019
Views:
25
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform