[TIB] Re: A TI-83 research question


[Prev][Next][Index][Thread]

[TIB] Re: A TI-83 research question




CJ Wallace wrote:
>>  (1)  While loops as opposed to Repeat loops.
>>         I've heard that Repeats are faster, I think,
>>         but is this empirically true?
> 
> 
> I'd heard that repeat loops were faster as well, but I've never really 
> investigated the issue. I think it's all really a matter of what you're 
> more used to using when it comes to a choice between the two, as I don't 
> believe that the speed difference is all that noticeable.

I wrote two simple programs to test this.

0->I
While I<1000
I+1->I
End

and

0->I
Repeat I=1000
I+1->I
End

Both programs took 18 seconds to execute. So if it's not
a very fast game, I guess it shouldn't make any difference?

/jonas




References: