diff options
author | Eli Zaretskii <eliz@gnu.org> | 2018-06-30 11:43:42 +0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2018-06-30 11:43:42 +0300 |
commit | ed65ea18152636500399a7b6b75c87bac7d4ef2b (patch) | |
tree | fc7fe235cc9866326b5bab8c13255c2ef9ffbf2c /src/w32proc.c | |
parent | 3b4e65e797e15668345cf606c7d822cce11f17b2 (diff) | |
download | emacs-ed65ea18152636500399a7b6b75c87bac7d4ef2b.tar.gz |
Speed up reading sub-process output on MS-Windows
* src/w32proc.c (syms_of_ntproc) <w32-pipe-read-delay>: Set to
zero. For the details, see this discussion:
http://lists.gnu.org/archive/html/emacs-devel/2018-06/msg00711.html.
* src/w32.c (_sys_read_ahead): Update the commentary for
w32-pipe-read-delay usage.
* doc/emacs/msdos.texi (Windows Processes): Document
w32-pipe-read-delay.
* etc/NEWS: Mention the change of the value of w32-pipe-read-delay.
Diffstat (limited to 'src/w32proc.c')
-rw-r--r-- | src/w32proc.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/w32proc.c b/src/w32proc.c index 28d7b6611f6..5934669c363 100644 --- a/src/w32proc.c +++ b/src/w32proc.c @@ -3763,14 +3763,17 @@ them blocking when trying to access unmounted drives etc. */); DEFVAR_INT ("w32-pipe-read-delay", w32_pipe_read_delay, doc: /* Forced delay before reading subprocess output. -This is done to improve the buffering of subprocess output, by -avoiding the inefficiency of frequently reading small amounts of data. +This may need to be done to improve the buffering of subprocess output, +by avoiding the inefficiency of frequently reading small amounts of data. +Typically needed only with DOS programs on Windows 9X; set to 50 if +throughput with such programs is slow. If positive, the value is the number of milliseconds to sleep before -reading the subprocess output. If negative, the magnitude is the number -of time slices to wait (effectively boosting the priority of the child -process temporarily). A value of zero disables waiting entirely. */); - w32_pipe_read_delay = 50; +signaling that output from a subprocess is ready to be read. +If negative, the value is the number of time slices to wait (effectively +boosting the priority of the child process temporarily). +A value of zero disables waiting entirely. */); + w32_pipe_read_delay = 0; DEFVAR_INT ("w32-pipe-buffer-size", w32_pipe_buffer_size, doc: /* Size of buffer for pipes created to communicate with subprocesses. |