LOOP and (&= VS Append)
Hello all,
I have added a minor update to LOOP lib. It now has
method polymorphism. All that means is that metods
belong to classes now. Before you can use a function or
a procedure as a method, you must created it and add it
to the classes that will use it. I haven't updated the
doc yet but it works the same way as properties now.
Also, I have experiemented with changing all the lines
that use "&=" to use append() instead. What I have found
is that the benchmarks actually show that it runs slower.
Now I was recently informed that append() was faster than
&= (I think by Irv M.) Perhaps the discrepancy is that
append is faster for simple appends while &= is faster
for appends with lots of subscripting which is the case
with LOOP.E. Does anyone have any specific facts about
this? Rob? Here is the benchmarks done with a program
provided to me by Michael Nelson:
LOOP lib benchmarks using append()
==================================
Benchmarks for LOOP.E by Lewis Townsend.
Times in seconds for 100000 iterations
Please press enter...
Entering LOOP oset() loop...
LOOP oset() time (less loop overhead): 0.44
Please press enter...
Entering LOOP oget() loop...
LOOP oget() time (less loop overhead): 0.27
Please press enter...
Entering LOOP CallFunc() loop...
LOOP CallFunc() time (less loop overhead): 0.44
Please press enter...
Entering LOOP NewObject() loop...
LOOP NewObject() time (less loop overhead): 5.55
Please press enter...
Entering LOOP Delete() loop...
LOOP Delete() time (less loop overhead): 0.22
LOOP lib benchmarks with &=
===========================
Benchmarks for LOOP.E by Lewis Townsend.
Times in seconds for 100000 iterations
Please press enter...
Entering LOOP oset() loop...
LOOP oset() time (less loop overhead): 0.43
Please press enter...
Entering LOOP oget() loop...
LOOP oget() time (less loop overhead): 0.27
Please press enter...
Entering LOOP CallFunc() loop...
LOOP CallFunc() time (less loop overhead): 0.38
Please press enter...
Entering LOOP NewObject() loop...
LOOP NewObject() time (less loop overhead): 5.38
Please press enter...
Entering LOOP Delete() loop...
LOOP Delete() time (less loop overhead): 0.17
==========================================
If anyone wants the program these benchmarks
were generated by, contact me or Mike Nelson.
later,
Lewis Townsend
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Share information about yourself, create your own public profile at
http://profiles.msn.com.
|
Not Categorized, Please Help
|
|