From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: speech.free@gmail.com Newsgroups: gmane.emacs.help Subject: Emacs (Windows version) slow when transferring large amount of text over pty or pipe Date: Sat, 11 Oct 2014 12:04:33 -0700 (PDT) Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1413063131 3351 80.91.229.3 (11 Oct 2014 21:32:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 11 Oct 2014 21:32:11 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Oct 11 23:32:08 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Xd4Gl-0002w7-Ak for geh-help-gnu-emacs@m.gmane.org; Sat, 11 Oct 2014 23:32:07 +0200 Original-Received: from localhost ([::1]:55306 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xd4Gk-0006z3-US for geh-help-gnu-emacs@m.gmane.org; Sat, 11 Oct 2014 17:32:06 -0400 X-Received: by 10.66.136.71 with SMTP id py7mr4018782pab.35.1413054274505; Sat, 11 Oct 2014 12:04:34 -0700 (PDT) X-Received: by 10.51.17.104 with SMTP id gd8mr161809igd.7.1413054274367; Sat, 11 Oct 2014 12:04:34 -0700 (PDT) Original-Path: usenet.stanford.edu!uq10no8777996igb.0!news-out.google.com!rp1ni26922igb.0!nntp.google.com!h18no4741808igc.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=108.193.232.42; posting-account=DWjLEQkAAADLnHA2oKd7rzKdWrb8mrBs Original-NNTP-Posting-Host: 108.193.232.42 User-Agent: G2/1.0 Injection-Date: Sat, 11 Oct 2014 19:04:34 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:208157 X-Mailman-Approved-At: Sat, 11 Oct 2014 17:31:57 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:100437 Archived-At: I am debugging a clang based completer. The completer running as a sub-proc= ess sends a large amount of text (about 1.8M) to emacs over a pty or pipe c= onnection. The emacs connection buffer is about 4k, as seen from logging, t= hat is the process filter is called for every 4k of text. The text is inser= ted into the process buffer and accumulated there and an EOT string is repe= atedly searched for. Receiving the whole transfer takes close to 30 seconds= , rendering the completer useless. The same problem is not seen on Linux. A= ny 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.