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 #7867 is a reply to message #7778] Tue, 21 January 1997 00:00 Go to previous messageGo to previous message
thompson is currently offline  thompson
Messages: 584
Registered: August 1991
Senior Member
llobet@elpp1.epfl.ch (Xavier Llobet i Sales EPFL-CRPP 1015 Lausanne CH) writes:


> In article <5blhri$ks1@post.gsfc.nasa.gov>, thompson@orpheus.nascom.nasa.gov
> (William Thompson) writes:

...

> =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
[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: Fri Oct 17 21:31:39 PDT 2025

Total time taken to generate the page: 0.88056 seconds