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

Home » Public Forums » archive » Re: How to speed up large FOR loops?
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: How to speed up large FOR loops? [message #79810 is a reply to message #79809] Tue, 10 April 2012 09:53 Go to previous messageGo to previous message
Fabzi is currently offline  Fabzi
Messages: 305
Registered: July 2010
Senior Member
On 04/10/2012 06:26 PM, Saurav Dhital wrote:
> Yes. More specifically, I reform arrays and assign them to the new
> FITS structure. This happens a lot.

This is probably the problem. Doing out = [out, INDGEN(10)] is very
inefficient in memory.

If you have IDL 8+ I suppose you could use lists. If not (like me), you
may want to use the useful MGcoArrayList from Michael Galloy:

http://docs.idldev.com/idllib/collection/mgcoarraylist__defi ne.html

Cheers,

Fab
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Creating netCDF file
Next Topic: How to speed up large FOR loops?

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

Current Time: Wed Oct 08 15:27:08 PDT 2025

Total time taken to generate the page: 0.00499 seconds