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

Home » Public Forums » archive » Pass by value and 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
Pass by value and performance [message #46719] Tue, 13 December 2005 21:00 Go to previous message
Kenneth P. Bowman is currently offline  Kenneth P. Bowman
Messages: 585
Registered: May 2000
Senior Member
A cautionary note on argument passing ...

I have a large code that does a lot of interpolation in
multi-dimensional arrays. Being a clever IDL programmer (too clever by
half, as it turns out), I package these arrays into structures along
with various information about the arrays. When these arrays are then
passed, for example, into INTERPOLATE, as

result = INTERPOLATE(data.array, x, y, z)

the array is passed by value, which entails making a copy of the array.
When these arrays get large, this causes a big performance hit. So, I
am in the process of making my code less clever (and uglier) but much
faster.

Cheers, Ken Bowman
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: tutorials
Next Topic: Re: Using zlib and IDL 6.1 in a DLM

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

Current Time: Wed Oct 08 18:52:06 PDT 2025

Total time taken to generate the page: 0.00456 seconds