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

Home » Public Forums » archive » Re: LIST performance
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: LIST performance [message #73438 is a reply to message #73434] Sun, 07 November 2010 12:14 Go to previous messageGo to previous message
Mark[1] is currently offline  Mark[1]
Messages: 66
Registered: February 2008
Member
A while back I wrote an MGH_Vector class that performs much the same
function as IDL 8's LIST (random-access container for heterogeneous
data). For the simple problem of accumulating a bunch of n floats then
saving the results to an array, the MGH_Vector is slower than simple
array concatenation for small n and faster for large n, as you'd
expect, the crossover occurring at around n = 25,000. In some quick
and dirty tests I just ran, MGH_Vector outperformed LIST by a factor
of 2.4 from n = 10^4 to 10^6, then at n = 10^7 MGH_Vector stayed
linear, but LIST started working the paging file and then ran out of
memory. (To be fair to the LIST class, the amount of memory that IDL 8
has available in GUI mode on win32 is pitifully small at 512 MiB. I
could switch to the console mode, but I'm afraid I can't be bothered.)

You'd think the ITT programmers could do a better job of programming
an extensible list class than little old me.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to query New Graphics object properties?
Next Topic: run .sav file with -args

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

Current Time: Fri Oct 10 05:18:13 PDT 2025

Total time taken to generate the page: 1.03495 seconds