Re: removing a loop cause it to go at half the speed?
- From: tom fredriksen <tom@xxxxxxxxxx>
- Date: Wed, 15 Mar 2006 21:15:11 +0100
Vladimir S. Oka wrote:
On Wednesday 15 March 2006 16:14, tom fredriksen opined (in
<44183d6e$1@xxxxxxxxxxxxxxxxx>):
I was doing a simple test of the speed of a "maths" operation and when
I tested it I found that removing the loop that initialises the data
array for the operation caused the whole program to spend twice the
time to complete. If the loop is included it takes about 7.48 seconds
to complete, but when removed it takes about 11.48 seconds.
Does anybody have a suggestion as to why this is so and whether I can
trust the results of the code as it is below?
I'd suggest brushing up on your algebra. Since when is 11.48 "twice the"
7.48? In my book it's closer to 50% larger ("twice larger" being 100%).
I did not say twice the larger, I said twice the time:/
/tom
.
- Follow-Ups:
- Re: removing a loop cause it to go at half the speed?
- From: Mark McIntyre
- Re: removing a loop cause it to go at half the speed?
- References:
- removing a loop cause it to go at half the speed?
- From: tom fredriksen
- Re: removing a loop cause it to go at half the speed?
- From: Vladimir S. Oka
- removing a loop cause it to go at half the speed?
- Prev by Date: Re: removing a loop cause it to go at half the speed?
- Next by Date: Re: Book-keeping metadata for allocated memory
- Previous by thread: Re: removing a loop cause it to go at half the speed?
- Next by thread: Re: removing a loop cause it to go at half the speed?
- Index(es):
Relevant Pages
|