Versions des environnements
>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement