Mercurial > emacs
changeset 53520:2a54a8df1973
(read_process_output): Only activate adaptive
buffering if we read less than 256 bytes at a time.
author | Kim F. Storm <storm@cua.dk> |
---|---|
date | Tue, 06 Jan 2004 23:34:45 +0000 |
parents | ad9b61a60774 |
children | 7a0f7095ef65 |
files | src/process.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/process.c Tue Jan 06 23:21:00 2004 +0000 +++ b/src/process.c Tue Jan 06 23:34:45 2004 +0000 @@ -4771,7 +4771,7 @@ if (!NILP (p->adaptive_read_buffering)) { int delay = XINT (p->read_output_delay); - if (nbytes < readmax - carryover) + if (nbytes < 256) { if (delay < READ_OUTPUT_DELAY_MAX_MAX) { @@ -4780,7 +4780,7 @@ delay += READ_OUTPUT_DELAY_INCREMENT * 2; } } - else if (delay > 0) + else if (delay > 0 && (nbytes == readmax - carryover)) { delay -= READ_OUTPUT_DELAY_INCREMENT; if (delay == 0)