diff options
| author | Eli Zaretskii | 2019-12-21 10:47:31 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2019-12-21 10:47:31 +0200 |
| commit | cc78faee7d23dd0433ba537818a68cbd20fa52a3 (patch) | |
| tree | 88f370cc83f7e2bead825886035af7e2905535b5 /etc | |
| parent | 0f7e3430bba031a6c5f45e0afe2ddcac197603cf (diff) | |
| download | emacs-cc78faee7d23dd0433ba537818a68cbd20fa52a3.tar.gz emacs-cc78faee7d23dd0433ba537818a68cbd20fa52a3.zip | |
Allow control of data amount read from subprocess in one chunk
* src/process.c (syms_of_process) <read-process-output-max>:
New variable.
(read_process_output): Use it instead of the hard-coded
constant 4096. (Bug#38561)
Use SAFE_ALLOCA to support large buffers for reading process
output.
* etc/NEWS: Mention 'read-process-output-max'.
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/NEWS | 8 |
1 files changed, 8 insertions, 0 deletions
| @@ -2724,6 +2724,14 @@ overlays. This is only done on 'display' properties that have the | |||
| 2724 | ** 'process-contact' now takes an optional NO-BLOCK argument to allow | 2724 | ** 'process-contact' now takes an optional NO-BLOCK argument to allow |
| 2725 | not waiting for a process to be set up. | 2725 | not waiting for a process to be set up. |
| 2726 | 2726 | ||
| 2727 | --- | ||
| 2728 | ** New variable 'read-process-output-max' controls sub-process throughput. | ||
| 2729 | This variable determines how many bytes can be read from a sub-process | ||
| 2730 | in one read operation. The default, 4096 bytes, was previously a | ||
| 2731 | hard-coded constant. Setting it to a larger value might enhance | ||
| 2732 | throughput of reading from sub-processes that produces vast | ||
| 2733 | (megabytes) amounts of data in one go. | ||
| 2734 | |||
| 2727 | +++ | 2735 | +++ |
| 2728 | ** The new user option 'quit-window-hook' is now run first when | 2736 | ** The new user option 'quit-window-hook' is now run first when |
| 2729 | executing the 'quit-window' command. | 2737 | executing the 'quit-window' command. |