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

Home » Public Forums » archive » Re: Slow array indexing
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: Slow array indexing [message #29215 is a reply to message #29214] Wed, 06 February 2002 09:15 Go to previous message
the_cacc is currently offline  the_cacc
Messages: 104
Registered: October 2001
Senior Member
Only seems to apply to BYTARR, INTARR and UINDGEN. The program below
gives the following output on IDL5.5 Aplha Linux:

IDL> test
% Compiled module: TEST.
{ alpha linux unix linux 5.5 Aug 28 2001 64 64}
1 3.2928760
2 2.3732140
3 0.047249913
4 0.047480941
5 0.0059390068
6 0.0069260597
9 0.0088199377
12 2.3164300
13 0.0047600269
14 0.0057559013
15 0.0054670572


------------------------------------
PRO test

n = 256
index = lindgen(n)
type = [1,2,3,4,5,6,9,12,13,14,15]

print,!version

FOR i = 0,10 DO BEGIN
arr = MAKE_ARRAY(n,n,TYPE=type[i])
t=systime(1)
temp=arr[*,index]
print,type[i],systime(1)-t
ENDFOR

END
-------------------------------------
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Fast shear
Next Topic: Setting XSIZE in Droplist Widget

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

Current Time: Wed Oct 08 17:47:15 PDT 2025

Total time taken to generate the page: 0.00399 seconds