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

Home » Public Forums » archive » Re: Code optimization
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: Code optimization [message #75112] Thu, 17 February 2011 11:52 Go to previous message
Jeremy Bailin is currently offline  Jeremy Bailin
Messages: 618
Registered: April 2008
Senior Member
On Thursday, February 17, 2011 2:42:47 PM UTC-5, kisCA wrote:
> Jeremy, I am amazed how you manage so quickly to find a way to
> optimize the code. Do you have some tips to achieve it?

It obviously depends on the detailed situation, but the main thing is to understand what you're trying to do at a reasonably high level. So looking at the last statement in the outer loop and saying "that's a multiplication of two vectors", or looking at the inner 2 loops and saying "that's 2 matrix multiplications". Then it's often easy to see how that maps onto built-in IDL operators and functions.

-Jeremy.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Resizeable Graphics Windows for Traditional Commands
Next Topic: make strsplit not skip null between patterns

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

Current Time: Fri Oct 10 10:21:58 PDT 2025

Total time taken to generate the page: 1.83913 seconds