all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: speech.free@gmail.com
To: help-gnu-emacs@gnu.org
Subject: Re: Emacs (Windows version) slow when transferring large amount of text over pty or pipe
Date: Sat, 11 Oct 2014 18:43:26 -0700 (PDT)	[thread overview]
Message-ID: <bd63442f-82fb-4a61-a1d2-5ffcd3ac3895@googlegroups.com> (raw)
In-Reply-To: <b6835497-29ab-4db2-b827-9539c40c386a@googlegroups.com>

Someone on Reddit has pointed out this bug:
http://lists.gnu.org/archive/html/bug-gnu-emacs/2014-10/msg00159.html

My delay largely went away after I (setq w32-pipe-read-delay 0).

On Saturday, October 11, 2014 12:04:33 PM UTC-7, speec...@gmail.com wrote:
> I am debugging a clang based completer. The completer running as a sub-process sends a large amount of text (about 1.8M) to emacs over a pty or pipe connection. The emacs connection buffer is about 4k, as seen from logging, that is the process filter is called for every 4k of text. The text is inserted into the process buffer and accumulated there and an EOT string is repeatedly searched for. Receiving the whole transfer takes close to 30 seconds, rendering the completer useless. The same problem is not seen on Linux. Any suggestion on why this is and how to deal with it? I have GNU Emacs 24.3.1 (i386-mingw-nt6.2.9200)
> 
>  of 2013-03-17 on MARVIN.


  parent reply	other threads:[~2014-10-12  1:43 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-11 19:04 Emacs (Windows version) slow when transferring large amount of text over pty or pipe speech.free
2014-10-12  1:11 ` Alexis
2014-10-12  1:43 ` speech.free [this message]
     [not found] ` <mailman.11020.1413079847.1147.help-gnu-emacs@gnu.org>
2014-10-12  4:53   ` speech.free

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=bd63442f-82fb-4a61-a1d2-5ffcd3ac3895@googlegroups.com \
    --to=speech.free@gmail.com \
    --cc=help-gnu-emacs@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.