all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: David Kastrup <dak@gnu.org>
Cc: offby1@blarg.net, emacs-devel@gnu.org
Subject: Re: Fix for slow process output processing (please test).
Date: 05 Jan 2004 20:39:53 +0100	[thread overview]
Message-ID: <x58ykmmbg6.fsf@lola.goethe.zz> (raw)
In-Reply-To: <2914-Mon05Jan2004210950+0200-eliz@elta.co.il>

"Eli Zaretskii" <eliz@elta.co.il> writes:

> > From: David Kastrup <dak@gnu.org>
> > Date: 05 Jan 2004 16:57:14 +0100
> > > 
> > > I suppose that process-adaptive-read-buffering isn't really needed
> > > on Windows,
> > 
> > Since Windows is slow, anyway?
> 
> I think the reason is that Windows never feeds Emacs with such small
> chunks from a pipe.
> 
> > I suppose the problem could be that the Windows equivalent of
> > "select" that Emacs uses does a busy wait without yielding the
> > CPU.
> 
> I think that's not true: it does yield the CPU.  See
> w32proc.c:sys_select.

More exactly: my guess is that the equivalent may yield the CPU to
the operating system, but the operating system may be of the opinion
that it will prefer to use up short delay slots by an active wait
rather than letting other processes run.  In short: it is my
suspicion that the yielded CPU time does not arrive at the intended
place.  You could not know this from Emacs sources, however.  We'd
need somebody with Windows insights to get more of a clue.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum

  reply	other threads:[~2004-01-05 19:39 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-16  1:21 Fix for slow process output processing (please test) Kim F. Storm
2003-12-16  2:14 ` David Kastrup
2003-12-16  3:34 ` David Kastrup
2003-12-16 10:23   ` Kim F. Storm
2003-12-16 11:51     ` David Kastrup
2003-12-16 13:24       ` Kim F. Storm
2004-01-03 15:12         ` David Kastrup
2004-01-04 23:00           ` Kim F. Storm
2004-01-03 22:07 ` Eric Hanchrow
2004-01-04 22:42   ` Kim F. Storm
2004-01-05 15:57     ` David Kastrup
2004-01-05 19:09       ` Eli Zaretskii
2004-01-05 19:39         ` David Kastrup [this message]
2004-01-05 19:52         ` Jason Rumney
2004-01-05 23:28           ` Kim F. Storm
2004-01-05 23:16             ` Jason Rumney
2004-01-05 23:44               ` David Kastrup
2004-01-06  0:23                 ` Jason Rumney
2004-01-07  0:40               ` Kim F. Storm
2004-01-05 23:35       ` Kim F. Storm
2004-01-05 22:50         ` David Kastrup
2004-01-06  0:09           ` Kim F. Storm

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=x58ykmmbg6.fsf@lola.goethe.zz \
    --to=dak@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=offby1@blarg.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.