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

Home » Public Forums » archive » looking for sort procedure
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: looking for sort procedure [message #7957 is a reply to message #7778] Wed, 29 January 1997 00:00 Go to previous messageGo to previous message
pford is currently offline  pford
Messages: 33
Registered: September 1996
Member
del
>> =I also tried the above example on a DEC AXP 3000/600 where it took about 60
>> =seconds. I wonder if there's something in the code that is optimized for Sun
>> =workstations, maybe going back to the days when the first Unix port of
IDL was
>> =called SunIDL?
>> =
>> =Bill Thompson
>
>> Here are the results on a DEC 3000 Model 400:
>
>
>> IDL. Version 3.6.1 (vms alpha).
>> [...]
>
>> IDL> a = indgen(10000) & b=[a,a]
>> IDL> print,systime(0) & s = b(sort(b)) & print,systime(0)
>> Tue Jan 21 09:58:59 1997
>> Tue Jan 21 09:59:00 1997
>> IDL>
>> IDL> a=lindgen(100000L) & b=[a,a]
>> IDL> print,systime(0) & s = b(sort(b)) & print,systime(0)
>> Tue Jan 21 10:00:18 1997
>> Tue Jan 21 10:00:27 1997
>
>> Which IDL version are you using?
>
> I suspect that it has more to do with the operating system than with the
> version of IDL. Here's the result on an AXP 3000/400 running VMS:
>
> IDL> a=lindgen(100000L) & b=[a,a]
> IDL> print,systime(0) & s = b(sort(b)) & print,systime(0)
> Tue Jan 21 18:23:31 1997
> Tue Jan 21 18:23:36 1997
>
> whereas the same problem on a faster AXP 3000/600 running OSF seemed to take
> forever. (I eventually gave up.) I decreased the size of A by a factor of 10,
> which gave
>
> IDL> a=lindgen(10000L) & b=[a,a]
> IDL> print,systime(0) & s = b(sort(b)) & print,systime(0)
> Tue Jan 21 23:35:39 1997
> Tue Jan 21 23:36:48 1997
>
> In both cases, I was using IDL v4.0.1, but I've also tried it with IDL v3.6.1
> under OSF and got the same result.
>
> It's interesting that the same problem with the same version of IDL on
> essentially the same architecture gives completely different results for VMS
> and Unix.
>
> Bill Thompson



pro test

a = indgen(100000L)
b = [a,a]
print,systime(0)
s = b(sort(b))
print,systime(0)

end

IDL> test
Wed Jan 29 22:25:25 1997
Wed Jan 29 22:25:28 1997
IDL 4.01 on a PPC 604 132 Mhz Mac clone for what it is worth.

Patrick Ford
Baylor College of Medicine
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Speckle
Next Topic: KILL_NOTIFY Programs

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

Current Time: Sat Oct 11 12:13:09 PDT 2025

Total time taken to generate the page: 1.19684 seconds