GNU bug report logs - #18626
24.3.94; communication with subprocess is slow

Previous Next

Package: emacs;

Reported by: stephen_leake <at> stephe-leake.org

Date: Sat, 4 Oct 2014 06:48:02 UTC

Severity: normal

Found in version 24.3.94

Full log


View this message in rfc822 format

From: Stephen Leake <stephen_leake <at> stephe-leake.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 18626 <at> debbugs.gnu.org
Subject: bug#18626: 24.3.94; communication with subprocess is slow
Date: Sun, 05 Oct 2014 08:34:30 -0500
Eli Zaretskii <eliz <at> gnu.org> writes:

>> From: Stephen Leake <stephen_leake <at> stephe-leake.org>
>> 
>> (find-file "xdisp.c")
>> (pipe-torture "debug.exe" "4096")
>> 
>> delay               time
>> ------------------------
>> 20 * 1000 * 1000    4.450068
>> 10 * 1000 * 1000    2.443788
>>  0 * 1000 * 1000    hangs until C-g
>> 
>
> Did you try with 5 msec instead of zero?

No, that seemed obvious :).

> Anyway, for 24.4 all I can suggest is a variable to replace the fixed
> 20 msec value.  Doing anything more complicated than that would be too
> dangerous this late into the pretest.

Right, and I have a good work-around for it (use a large enough buffer
in the subprocess).

But I'd like to understand the delay on reading from subprocesses.

-- 
-- Stephe




This bug report was last modified 10 years and 253 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.