diff options
| author | Eli Zaretskii | 2018-06-30 11:43:42 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2018-06-30 11:43:42 +0300 |
| commit | ed65ea18152636500399a7b6b75c87bac7d4ef2b (patch) | |
| tree | fc7fe235cc9866326b5bab8c13255c2ef9ffbf2c /doc | |
| parent | 3b4e65e797e15668345cf606c7d822cce11f17b2 (diff) | |
| download | emacs-ed65ea18152636500399a7b6b75c87bac7d4ef2b.tar.gz emacs-ed65ea18152636500399a7b6b75c87bac7d4ef2b.zip | |
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 'doc')
| -rw-r--r-- | doc/emacs/msdos.texi | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/emacs/msdos.texi b/doc/emacs/msdos.texi index 679bdd3e83b..c69c7d37f9b 100644 --- a/doc/emacs/msdos.texi +++ b/doc/emacs/msdos.texi | |||
| @@ -808,6 +808,13 @@ communications with subprocesses to programs that exhibit unusual | |||
| 808 | behavior with respect to buffering pipe I/O. | 808 | behavior with respect to buffering pipe I/O. |
| 809 | 809 | ||
| 810 | @ifnottex | 810 | @ifnottex |
| 811 | @vindex w32-pipe-read-delay | ||
| 812 | If you need to invoke MS-DOS programs as Emacs subprocesses, you may | ||
| 813 | see low rate of reading data from such programs. Setting the variable | ||
| 814 | @code{w32-pipe-read-delay} to a non-zero value may improve throughput | ||
| 815 | in these cases; we suggest the value of 50 for such situations. The | ||
| 816 | default is zero. | ||
| 817 | |||
| 811 | @findex w32-shell-execute | 818 | @findex w32-shell-execute |
| 812 | The function @code{w32-shell-execute} can be useful for writing | 819 | The function @code{w32-shell-execute} can be useful for writing |
| 813 | customized commands that run MS-Windows applications registered to | 820 | customized commands that run MS-Windows applications registered to |