() and execution speed [message #44955] |
Fri, 29 July 2005 05:42  |
Gert
Messages: 11 Registered: December 2001
|
Junior Member |
|
|
Hi,
I just played with and array of structures, each structure containing a
(float) images.
If i do
SomeProc, psData[NumStruct].flIm[1:1000]
or
SomeProc, (psData[NumStruct].flIm)[1:1000]
then the result is the same, but the second runs much slower. Anyone knows
why this is so? My guess is that in the second run, a copy of the array is
made.
I would be interested to find out if there are more 'pitfalls' out there.
good WE,
Gert
--
|
|
|
|