comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » () and execution speed
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
() and execution speed [message #44955] Fri, 29 July 2005 05:42 Go to next message
Gert is currently offline  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


--
Re: () and execution speed [message #45076 is a reply to message #44955] Mon, 01 August 2005 18:29 Go to previous message
marc schellens[1] is currently offline  marc schellens[1]
Messages: 183
Registered: January 2000
Senior Member
One possible pitfall here is, that as soon as the braced
expression is more dimensional the results might differ.
Ie. NumStruct is an array.

Cheers,
marc
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: avoiding for loops
Next Topic: Trouble running demo

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 13:33:07 PDT 2025

Total time taken to generate the page: 0.00670 seconds