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

Home » Public Forums » archive » Re: Assignment Time for a 3d Variable
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Assignment Time for a 3d Variable [message #46480 is a reply to message #46475] Wed, 23 November 2005 04:46 Go to previous message
Antonio Santiago is currently offline  Antonio Santiago
Messages: 201
Registered: February 2004
Senior Member
Nuno Oliveira wrote:
> I was making a routine that was doing an intense assignment in one of
> the three directions possible, according to an option (either the first,
> second or third dimension). I noticed that when I was doing it in the
> first direction I took MUCH more time than in the other two directions.
>
> Anyone has a clue for why does this happen? And anyone knows a way that
> can make execution time similar? (Making the others to wait is not a
> valid answer, ;) )
>
> Here is the code for checking the execution times:
>
> time = systime(1)
> for k = 0, 99 do $
> temp = vol[k,*,*]
> print, 'execution time (for x axis): '+STRING(systime(1) - time)
>
> time = systime(1)
> for k = 0, 99 do $
> temp = vol[*,k,*]
> print, 'execution time (for y axis): '+STRING(systime(1) - time)
>
> time = systime(1)
> for k = 0, 99 do $
> temp = vol[*,k,*]
> print, 'execution time (for z axis): '+STRING(systime(1) - time)
>
> And this is what I get:
>
> execution time (for x axis): 0.24305296
> execution time (for y axis): 0.0063638687
> execution time (for z axis): 0.0065510273
>

I suposse it depends on the way IDL (and internally C) stores arrays.
http://www.ibiblio.org/pub/languages/fortran/ch2-6.html

--
-----------------------------------------------------
Antonio Santiago P�rez
( email: santiago<<at>>grahi.upc.edu )
( www: http://www.grahi.upc.edu/santiago )
( www: http://asantiago.blogsite.org )
-----------------------------------------------------
GRAHI - Grup de Recerca Aplicada en Hidrometeorologia
Universitat Polit�cnica de Catalunya
-----------------------------------------------------
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Creating Panels in iTools
Next Topic: How should I mark annotations in multi plot window

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

Current Time: Wed Oct 08 19:33:58 PDT 2025

Total time taken to generate the page: 0.00391 seconds