Hi Matt!

> -- Normal array copy with for loop:
> instruction cycles: 1153
> 
> -- POSTINC array copy with for loop
> instruction cycles: 519
> 
> -- POSTINC array copy with no loop (64 lines of code)
> instruction cycles: 134
> 
> As you can see there's quite a difference, you can copy
> arrays 8 times
> faster!

Well, you did omit the "normal with no loop" like

array2[0]=array1[0]
array2[1]=array1[1]
array2[2]=array1[2]

This would, if both arrays are in the same page, also need only a bit more than 
128 cycles, and probably a bit more than 256 cycles if the arrays are in 
different pages ;-)

I would, however, appreciate the factor 2 speedup when using loops!

Greets,
Kiste


-- 
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/jallib?hl=en.

Reply via email to