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

Home » Public Forums » archive » Re: Fast shear
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: Fast shear [message #29219 is a reply to message #29122] Wed, 06 February 2002 04:41 Go to previous message
the_cacc is currently offline  the_cacc
Messages: 104
Registered: October 2001
Senior Member
Wayne Landsman <landsman@mpb.gsfc.nasa.gov> wrote in message news:<3C60199D.E4810C70@mpb.gsfc.nasa.gov>...
>
> "Avoid the use of an asterisk on the left-hand side of an assignment."
>
> which in this case means to rewrite the assignment as
>
> for i = 0, n-1 DO array[0,i] = SHIFT(array[*,i],delta[i])
>
> For a fltarr(2048,2048) on my Solaris machine running V5.5, I find a
> factor of 15 improvement in speed.
>

WOW! Wayne, that's magic. I get 10-15X speed-up. The world *has* to be
told about this. One drawback - the code does not strictly make sense,
hell who cares !?

Cheers.
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: StrSplit wont port to Windows?
Next Topic: Re: Slow array indexing

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

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

Total time taken to generate the page: 0.00408 seconds