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

Home » Public Forums » archive » Re: efficient use of call_external
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: efficient use of call_external [message #6286 is a reply to message #6282] Wed, 22 May 1996 00:00 Go to previous messageGo to previous message
peter is currently offline  peter
Messages: 80
Registered: February 1994
Member
Nelson Tarr (nelson@star.net) wrote:
: I am interested in any information on the speed improvement that can
: be expected in translating parts of an IDL procedure to C. I plan on
: using "call_external" to invoke the functions within my C module.

: I am also interested in suggestions about when it is most beneficial
: to use C instead of IDL.

One rule of thumb is "Use call_external to replace the inner loop of
nested loops". That is, when you cannot avoid writing loops in IDL, you
will see tremendous improvement by replacing the inner loop(s), but much
less payback for replacing the outer loops. If you can vectorize the
inner loop (i.e. rewrite it to use IDL array operations) you will see
almost as much improvement.

If you are able to use IDL primitives and built-ins (e.g. array
addition, FFT, transposes), don't expect any gain from call_external.

Peter

--------------------------------
Peter Webb, HP Labs Medical Dept
E-Mail: peter_webb@hpl.hp.com
Phone: (415) 813-3756
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: window position / screen size
Next Topic: Avoiding memory paging with large data-set

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

Current Time: Sun Oct 12 11:10:32 PDT 2025

Total time taken to generate the page: 1.28478 seconds