[Migrated content. Thread originally posted on 02 September 2011]
Hi,for computing, I've noticed that calling a subprogram was a lot faster than invoking an object method.
Each time, the exec part is :
move 10 to valRetour.
multiply 100 by valRetour.
For 30 millions of iteration (just the invoke, not the creation of the object which is already existant), I obtain :
7 seconds using a subprogram, and about 170 seconds with the object using.
Is this difference due to compiling options? I think mechanism to locate a method or a subprogram block is the same, isn't it? I don't see why there's a so huge difference.
Regards,
TahitiClic

