10-31-2007 09:40 AM
10-31-2007 09:47 AM
10-31-2007 09:49 AM
Once again, I agree with altenbach..
The top approach is almost instaneous...and so is the second approach. However, in my time analysis it took 0.200292 seconds for the loop iterations to execute.
Not much time sacrifice in either approach.
10-31-2007 09:53 AM
10-31-2007 09:54 AM
Ditto the above!
I have preformed those benchmarks many times and the primatives ALWAYS are faster.
If I find that this is not true, I would be calling to reoprt a bug ASAP!
Ben
10-31-2007 10:01 AM - edited 10-31-2007 10:01 AM
Message Edited by altenbach on 10-31-2007 08:03 AM
10-31-2007 10:12 AM
10-31-2007 10:44 AM - edited 10-31-2007 10:44 AM
I wonder if scheduling a re-use of the buffer is involved.
In LV 7.0 this benchmark shows
primatives 0 ms
For loop #1 467 ms
For loop #2 664 ms
I used 10Meg arrays
THe two For loops show that the top input to an "add" can re-use its input buffer.
What kind of numbers do we get with different version of LV?
Christian can you try this on your machine and commnet?
In all our years of working togther you have never failed to surpass my examples. I must be doing something wrong.
Ben
Message Edited by Ben on 10-31-2007 10:45 AM
Message Edited by Ben on 10-31-2007 10:49 AM
10-31-2007 10:53 AM
10-31-2007 10:55 AM