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

Home » Public Forums » archive » Re: An optimisation question
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: An optimisation question [message #79710 is a reply to message #79709] Tue, 27 March 2012 15:00 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Matt Francis writes:

>> values = (REFORM(basis[index,*,*]))[ilat,ilon]
>
> In this case the RHS returns an array of the correct length, however
> for the size of basis array I have, the second version turns out to be
> literally hundreds of times slower (according to PROFILER). I though
> this must be because of REFORM, but the time spent in the REFORM
> function is relatively small. I can't work out why the second version
> is slow?

I suspect it is those pesky asterisks giving you trouble
in your loop.

http://www.idlcoyote.com/code_tips/asterisk.html
http://www.idlcoyote.com/misc_tips/submemory.html

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Undefined Variable: DC_Write_Fixed/DC_Write_Free - PV WAVE
Next Topic: Cellular automata

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

Current Time: Fri Oct 10 23:05:22 PDT 2025

Total time taken to generate the page: 1.28007 seconds