User: stephent
Date: 06/04/01 18:21:15
Modified: xemacs/src process-unix.c ChangeLog
Log:
Increase Faccept_process_output timeout in unix_send_process.
<87wte9nuac.fsf(a)tleepslib.sk.tsukuba.ac.jp>
Revision Changes Path
1.58 +7 -4 XEmacs/xemacs/src/process-unix.c
Index: process-unix.c
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/src/process-unix.c,v
retrieving revision 1.57
retrieving revision 1.58
diff -u -p -r1.57 -r1.58
--- process-unix.c 2005/02/04 04:06:34 1.57
+++ process-unix.c 2006/04/01 16:21:11 1.58
@@ -1545,10 +1545,13 @@ unix_send_process (Lisp_Object proc, str
}
while (Lstream_was_blocked_p (XLSTREAM (p->pipe_outstream)))
{
- /* Buffer is full. Wait, accepting input;
- that may allow the program
- to finish doing output and read more. */
- Faccept_process_output (Qnil, make_int (1), Qnil);
+ /* Buffer is full. Wait 10ms, accepting input; that may
+ allow the program to finish doing output and read more.
+ Used to be 1s, but that's excruciating. nt_send_process
+ uses geometrically increasing timeouts (up to 1s). This
+ might be a good idea here.
+ N.B. timeout_secs = Qnil is faster than Qzero. */
+ Faccept_process_output (Qnil, Qnil, make_int (10));
/* It could have *really* finished, deleting the process */
if (NILP(p->pipe_outstream))
return;
1.941 +7 -0 XEmacs/xemacs/src/ChangeLog
Index: ChangeLog
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/src/ChangeLog,v
retrieving revision 1.940
retrieving revision 1.941
diff -u -p -r1.940 -r1.941
--- ChangeLog 2006/03/31 19:20:45 1.940
+++ ChangeLog 2006/04/01 16:21:11 1.941
@@ -1,3 +1,10 @@
+2006-03-23 Tony Bennett <tbennett(a)nvidia.com>
+
+ * process-unix.c (unix_send_process): Reduce timeout for
+ Faccept_process_output to 10ms. This dramatically speeds up many
+ functions that read from processes, eg, inferior interpreter
+ processes as in ilisp or python-mode.
+
2006-03-31 Stephen J. Turnbull <stephen(a)xemacs.org>
* XEmacs 21.5.26 "endive" is released.
Show replies by date