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

Home » Public Forums » archive » Compiling file with many functions: huge performance difference between IDL and IDLDE
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Compiling file with many functions: huge performance difference between IDL and IDLDE [message #38531] Wed, 17 March 2004 01:47 Go to previous message
Sidney Cadot is currently offline  Sidney Cadot
Messages: 7
Registered: October 2002
Junior Member
Hi all,

For a system we're making, a rather big IDL file is generated containing
well over 12,000 function definitions, accompanied by a selector
function (see below for a rationale).

What we're seeing is that in command-line IDL, this works like a charm:
compilation of the file takes about 4--5 seconds on a reasonably fast
machine, which is acceptable.

However, when this file is compiled from within IDLDE, this takes well
over three minutes-- rougly a factor 60 increase(!)

Does anybody know what causes this, and perhaps a solution?

We tried pre-compiling the functions using a SAV file; this yields a
significant increase both in IDL (cmd line version): 3 sec, and IDLDE
(used time down to 87 seconds), but the relative difference is still
quite puzzling.

Best regards,

Sidney Cadot
Science and Technology Corp., The Netherlands




P.S. the reason we're doing this is that we need to implement a
string-based map with optiomal performance, like this:

FUNCTION f_tom
RETURN, 123
END

FUNCTION f_dick
RETURN, 456
END

FUNCTION f_harry
RETURN, 789
END

FUNCTION f, name
CATCH, error_status
IF error_status EQ 0 THEN RETURN, -1
RETURN, call_function("f_" + name)
END
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: image registration, robust
Next Topic: compiling itools and utilities

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

Current Time: Wed Oct 08 17:32:53 PDT 2025

Total time taken to generate the page: 0.00416 seconds