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: Re: Emacs (Windows version) slow when transferring large amount of text over pty or pipe Date: Sat, 11 Oct 2014 21:53:05 -0700 (PDT) Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1413089729 1241 80.91.229.3 (12 Oct 2014 04:55:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 12 Oct 2014 04:55:29 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Oct 12 06:55:25 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 1XdBBk-00025d-I1 for geh-help-gnu-emacs@m.gmane.org; Sun, 12 Oct 2014 06:55:24 +0200 Original-Received: from localhost ([::1]:56093 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XdBBk-0005as-7p for geh-help-gnu-emacs@m.gmane.org; Sun, 12 Oct 2014 00:55:24 -0400 X-Received: by 10.236.222.166 with SMTP id t36mr5744288yhp.24.1413089585735; Sat, 11 Oct 2014 21:53:05 -0700 (PDT) X-Received: by 10.50.79.230 with SMTP id m6mr156086igx.5.1413089585637; Sat, 11 Oct 2014 21:53:05 -0700 (PDT) Original-Path: usenet.stanford.edu!s7no2107978qap.0!news-out.google.com!rp1ni26922igb.0!nntp.google.com!h18no4857065igc.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: 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: Sun, 12 Oct 2014 04:53:05 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:208166 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:100442 Archived-At: Thank you. This one seems to help just a little bit, but every little bit counts for a completer. Still on the same computer one would expect transferring 1.8M to be sub 1 sec instead of close to 2 sec right now. On Saturday, October 11, 2014 6:11:30 PM UTC-7, Alexis 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) > > > > Perhaps related: > > > > https://lists.gnu.org/archive/html/emacs-devel/2014-10/msg00055.html > > > > > > Alexis.