From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alexis Newsgroups: gmane.emacs.help Subject: Re: Emacs (Windows version) slow when transferring large amount of text over pty or pipe Date: Sun, 12 Oct 2014 12:11:30 +1100 Message-ID: <87d29ynl8n.fsf@gmail.com> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1413079868 5960 80.91.229.3 (12 Oct 2014 02:11:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 12 Oct 2014 02:11:08 +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 04:10:59 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 1Xd8ca-0008G2-U1 for geh-help-gnu-emacs@m.gmane.org; Sun, 12 Oct 2014 04:10:57 +0200 Original-Received: from localhost ([::1]:55781 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xd8ca-0003Rx-Bd for geh-help-gnu-emacs@m.gmane.org; Sat, 11 Oct 2014 22:10:56 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55802) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xd7jD-0005gY-6W for help-gnu-emacs@gnu.org; Sat, 11 Oct 2014 21:13:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xd7j7-0008ME-Nn for help-gnu-emacs@gnu.org; Sat, 11 Oct 2014 21:13:43 -0400 Original-Received: from mail-pd0-x234.google.com ([2607:f8b0:400e:c02::234]:58432) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xd7j7-0008Ly-FK for help-gnu-emacs@gnu.org; Sat, 11 Oct 2014 21:13:37 -0400 Original-Received: by mail-pd0-f180.google.com with SMTP id fp1so3736401pdb.11 for ; Sat, 11 Oct 2014 18:13:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:from:to:subject:date:in-reply-to:message-id:mime-version :content-type; bh=LuA0fUjRJ4EESDrBLhvTcQbeOBga5ry3HF0meTljvns=; b=bf/GtEq5tu53CCkLmXQHNxV018bbHAHYIz+uZLERItlv+vK5qdlw+cJuH+iC4kr2sj S7O7v768NjDo7tTR1dHixhl4W+JCU5VThGgFB/NVlhyA59Q0r65GyIr3JZjcOvNlKQNU EvBjUDeOFYiu5Ry2LZ8JHv0p6p+TxuYBvxx7KE8fTZ0oWaKe/uDM7VnkN7itTzf4z64N KmjWavclqz9bJaC1NdUpYZyo+yb785yanxRMV1+vj/afbaFxtjEmmA2lV7UgoyamMXV9 EbnwLhJWzqbVML+NbhZrv+sKmMd6kjxDJCyuuugyv6zZeutDqfQ8ClW51FR8Pi9Uww6l VmbA== X-Received: by 10.66.191.41 with SMTP id gv9mr15144437pac.15.1413076415385; Sat, 11 Oct 2014 18:13:35 -0700 (PDT) Original-Received: from localhost (ppp118-209-119-125.lns20.mel4.internode.on.net. [118.209.119.125]) by mx.google.com with ESMTPSA id v10sm7164338pbs.64.2014.10.11.18.13.33 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sat, 11 Oct 2014 18:13:34 -0700 (PDT) In-reply-to: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400e:c02::234 X-Mailman-Approved-At: Sat, 11 Oct 2014 22:10:47 -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:100439 Archived-At: speech.free@gmail.com writes: > 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.