On Thu, Jan 6, 2011 at 5:01 PM, pr <span dir="ltr"><<a href="mailto:romero619@hotmail.com">romero619@hotmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal">I have a new grads application where speed is the highest priority.</p><p class="MsoNormal">My grads script is fairly long & complicated, and runs through a multi-plot loop.</p>
<p class="MsoNormal">I find that certain things are rather limited in the grads scripting language (ex. running system commands & processing their output), and Im forced to do some ugly workarounds.</p><p class="MsoNormal">
So I’d like the added power of perl, but Im worried about the effect that the added perl overhead will have on overall processing speed.</p><p class="MsoNormal"> </p><p class="MsoNormal">Does anyone have any thoughts/opinions on the speed/performance of using traditional grads scripts files vs. using the perl interface?</p>
<p class="MsoNormal"> </p></div></div></blockquote><div><br></div><div>Think it will depend very much on the nature of your script, and how often you interact with the grads subsystem (say, 'q dims', sublin/subwrd, etc.) I'd suspect that for pure scripts that do not interact with the grads subsystem perl would be a bit faster. Now, there is some overhead of the perl interface interacting with the grads subsystem, more so than with a gs script. In all of my applications this overhead is negligible compared to the time spent with I/O, analysis and plotting. It is hard to say in general, you will need to profile your script.</div>
<div><br></div><div> Arlindo.</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal">Thanks, </p>
<p class="MsoNormal">P.Romero</p><p class="MsoNormal"> </p></div></div><br>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Arlindo da Silva<br><a href="mailto:dasilva@alum.mit.edu">dasilva@alum.mit.edu</a><br>