New testing framework

Antoine Pitrou solipsis at pitrou.net
Mon Jun 14 06:33:39 CDT 2010


Peter Arrenbrecht <peter.arrenbrecht <at> gmail.com> writes:
> 
> > If you are using subprocess.Popen(), try setting the bufsize parameter to
> > something reasonable (e.g. 4096). subprocess uses unbuffered IO by default,
> > which can be very slow depending on the OS.
> 
> Thanks. Mads pointed me to this as well. Not sure what the buffering
> is going to do to getting line-by-line output, though.

Script output by construction shouldn't be affected, since the buffer is on our
side. Script input would probably be, but I don't think it's a problem for
normal uses of hg.

Regards

Antoine.




More information about the Mercurial-devel mailing list