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

Home » Public Forums » archive » Re: Bizarre slowness from sort()
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: Bizarre slowness from sort() [message #30453 is a reply to message #30449] Tue, 23 April 2002 08:58 Go to previous messageGo to previous message
Ivan Valtchanov is currently offline  Ivan Valtchanov
Messages: 8
Registered: April 2002
Junior Member
Hi,

On my machine (Linux, Pentium-III, 512MB RAM, IDLv.5.4) it took 1 sec.

Here it is:

x = randomu(s,400000,/long)
t0=systime(1) & is=sort(x) & print,systime(1)-t0,' sec'
Output: 1.1320790 sec

With your save-ed file:

IDL> help,sortme
SORTME LONG = Array[376467]
IIDL> print,minmax(sortme)
% Compiled module: MINMAX.
0 65530
IDL> t0=systime(1) & is=sort(sortme) & print,systime(1)-t0,'sec'
0.74189603sec
IDL>

So there must be something strange in your version...

Cheers,
Ivan
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: 24-bit color problem on Red Hat Linux 7.1
Next Topic: ENVI Convert Arcview registration problems

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

Current Time: Fri Oct 10 00:09:37 PDT 2025

Total time taken to generate the page: 0.96063 seconds