|
On 6/17/2011 9:37 AM, Bryce Martin wrote:comparisons
Ok, so out of curiosity yesterday I was doing some DOW vs FOR
and thought that while I was at it I would do a performance test...andhere.
this uncovered something interesting...
Here's the long of the short of it...
DOW is 3x faster than FOR. If you use OPTIMIZE(*FULL) then the gap is
even greater.
Now, before anyone says it... yes...we're talking about milliseconds
But think of all your programs that have loops...yep, almost all ofthem.
So I guess my main question is this...worse
Why the big relative difference? How is it that FOR can be so much
than DOW? You can actually see a difference if doing 10's or 100's ofactual
millions of iterations. So while most people won't see a difference in
individual instances, if all your FOR loops were 3 times faster in all
your programs, I can't help but think you might be able to see some
performance across a fairly taxed system.http://www.code400.com/forum/showthread.php/10499-DOW-x-lt-y-is-3-times-faster-than-using-for-x-number-downto-1
I don't know... just ruminating. Anybody have any gritty details?
See this link for code and discussion....
use of the individual or entity to which it is addressed and may contain
Thanks
Bryce Martin
Programmer/Analyst I
570-546-4777
--- This message (including any attachments) is intended only for the
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.