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

Home » Public Forums » archive » spawn,cmd
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
spawn,cmd [message #69885] Tue, 02 March 2010 03:04
oxfordenergyservices is currently offline  oxfordenergyservices
Messages: 56
Registered: January 2009
Member
Hi All

Just a query which I think I have the answer to, in which case it is
just a comment.

I have to do stuff on about 10,000 files, hundreds of times over and
it takes a while

In playing, I have found that...

spawn,'cat in_filename |uniq >out_filename'

actually takes a lot more time than

reading each file in and uniq and writing out in idl

I haven't really use spawn too much until recently when I found it is
simple to use for certain unix commands but hadn't considered what the
overhead might be. Is there a standard response to this? Avoid
spawns within loops?

Cheers

Russ
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Deconvolving a set of points
Next Topic: casting error

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

Current Time: Wed Oct 08 17:47:50 PDT 2025

Total time taken to generate the page: 0.00483 seconds