From: Stephen Leake <stephen_leake@stephe-leake.org>
To: emacs-devel@gnu.org
Subject: emacs communication with subprocess is slow
Date: Fri, 03 Oct 2014 12:51:18 -0500 [thread overview]
Message-ID: <851tqpf3e1.fsf@stephe-leake.org> (raw)
This may be related to http://debbugs.gnu.org/cgi/bugreport.cgi?bug=18420
I'm using Emacs pretest 24.3.93, with the patch from 18240, on Windows 7.
I've run into another problem with Emacs communication with external
processes; there seems to be a delay on every task switch. This shows up
both when sending data to the subprocess, and when reading from it.
I haven't tested this on Debian yet.
The delay is not present in Emacs 24.3 on Windows 7.
When sending the contents of an Emacs buffer (source code to be parsed)
to the subprocess, if the read buffer in the subprocess is
large enough to hold the entire contents, no delay is apparent. However,
if the buffer is smaller, so that several reads are needed, then a delay
appears.
Similarly when sending data from the subprocess to Emacs.
I suspect this doesn't show up with the 'cat' test in 18420 because cat
uses multimegabyte buffers; it's designed for copying gigabyte files.
I can use a large buffer in my subprocess for read as a workaround, but
I have no control over the read buffer in Emacs (perhaps that could be
added?).
Should I reopen 18240, or start a new bug?
--
-- Stephe
next reply other threads:[~2014-10-03 17:51 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-03 17:51 Stephen Leake [this message]
2014-10-03 18:32 ` emacs communication with subprocess is slow Eli Zaretskii
2014-10-03 22:04 ` David Kastrup
2014-10-04 6:51 ` Stephen Leake
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=851tqpf3e1.fsf@stephe-leake.org \
--to=stephen_leake@stephe-leake.org \
--cc=emacs-devel@gnu.org \
/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.