ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <DDevie...@lgc.com>
Subject RE: Very bad performance when I redirect the output of a command
Date Mon, 25 Aug 2003 15:00:02 GMT
Zsolt, could you try with Ant CVS HEAD?

Conor indicated that he removed there a 5 or 6ms pause in between each 128
bytes read in StreamPumper, which could explain such poor performance. 

Morten's problem might be something else...

Anyways, please give CVS HEAD a try, and report what you find. Thanks, --DD

> -----Original Message-----
> From: Morten Mortensen [mailto:morten.mortensen@tietoenator.com]
> Sent: Monday, August 25, 2003 4:33 AM
> To: 'Ant Users List'
> Subject: RE: Very bad performance when I redirect the output of a command
> 
> 
> Hi all,
> 
> ..You mean "output", not "outfile"? Am I missing something?
> 
> I experience *other* kind-of-related problems with the "exec" task and the
> "output"-attribute - it very much appears as if the output does not get
> flushed properly. This is with 1.5.3, 1.6 (and JDK 1.4.1 and 1.4.2 on
> Windows). In some specific setups of mine, I always get the first ~6 kb
> output only.
> 
> The "exec" task has some kind of a flaw in it, I believe.
> 
> Regards,
>   Morten Sabroe Mortensen
> 
> 
> -----Original Message-----
> From: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de]
> Sent: 25. august 2003 10:24
> To: user@ant.apache.org
> Subject: RE: Very bad performance when I redirect the output of a
> command
> 
> 
> Can you try the same but without redirect?
>    <exec command="cvs log -l ${package}" />
> 
> So we know where the break is
> - using the Redirector
> - doing the exec
> - outside of Ant
> 
> 
> Jan
> 
> 
> > -----Original Message-----
> > From: Zsolt Koppany [mailto:zkoppanylist@intland.com]
> > Sent: Monday, August 25, 2003 8:10 AM
> > To: user@ant.apache.org
> > Subject: Very bad performance when I redirect the output of a command
> >
> >
> > Hi,
> >
> > from an "ant" script when I execute a command with redirected
> > output it
> > takes 9 sec. to execute a command what I can execute in 0.1 sec (10
> > times faster) from the console. I have even time to see how
> > the size of
> > the output file increases with repeated "ls -l filename" in an other
> > window.  What is the reason? How can I fix that?
> >
> > I use ant-1.5.4 with jdk1.4.1_04 Sun on Redhat-9.
> >
> > Example:
> > <exec command="cvs log -l ${package}" outfile="${outputfile}" />
> >
> > First I tried the <cvs command="log" ... and that does have the same
> > problem.
> >
> > Zsolt

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message