>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only