From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: fgallina@gnu.org (=?UTF-8?Q?Fabi=C3=A1n?= Ezequiel Gallina) Newsgroups: gmane.emacs.bugs Subject: bug#16875: python, comint-mode: Large output makes Emacs freeze Date: Mon, 28 Jul 2014 18:35:09 -0300 Message-ID: <878und2mlu.fsf@gnu.org> References: <530C60A7.1030009@easy-emacs.de> <871tt7levi.fsf@gnu.org> <837g2zih33.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1406583375 17886 80.91.229.3 (28 Jul 2014 21:36:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 28 Jul 2014 21:36:15 +0000 (UTC) Cc: 16875@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 28 23:36:07 2014 Return-path: Envelope-to: geb-bug-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 1XBsaV-00031G-Jx for geb-bug-gnu-emacs@m.gmane.org; Mon, 28 Jul 2014 23:36:07 +0200 Original-Received: from localhost ([::1]:42460 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XBsaV-0007Um-3J for geb-bug-gnu-emacs@m.gmane.org; Mon, 28 Jul 2014 17:36:07 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52749) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XBsaS-0007Ug-JK for bug-gnu-emacs@gnu.org; Mon, 28 Jul 2014 17:36:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XBsaQ-0000pf-CW for bug-gnu-emacs@gnu.org; Mon, 28 Jul 2014 17:36:04 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46042) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XBsaQ-0000pZ-9z for bug-gnu-emacs@gnu.org; Mon, 28 Jul 2014 17:36:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XBsaP-0006fz-NH for bug-gnu-emacs@gnu.org; Mon, 28 Jul 2014 17:36:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: fgallina@gnu.org (=?UTF-8?Q?Fabi=C3=A1n?= Ezequiel Gallina) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 28 Jul 2014 21:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16875 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 16875-submit@debbugs.gnu.org id=B16875.140658331725610 (code B ref 16875); Mon, 28 Jul 2014 21:36:01 +0000 Original-Received: (at 16875) by debbugs.gnu.org; 28 Jul 2014 21:35:17 +0000 Original-Received: from localhost ([127.0.0.1]:41308 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XBsZg-0006ex-43 for submit@debbugs.gnu.org; Mon, 28 Jul 2014 17:35:16 -0400 Original-Received: from fencepost.gnu.org ([208.118.235.10]:57484 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XBsZd-0006eo-7L for 16875@debbugs.gnu.org; Mon, 28 Jul 2014 17:35:14 -0400 Original-Received: from 222-99-245-190.fibertel.com.ar ([190.245.99.222]:47115 helo=localhost) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1XBsZb-0000DI-Pd; Mon, 28 Jul 2014 17:35:12 -0400 In-Reply-To: <837g2zih33.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 27 Jul 2014 07:03:12 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:91903 Archived-At: Eli Zaretskii writes: >> From: fgallina@gnu.org (Fabi=C3=A1n Ezequiel Gallina) >> Date: Sat, 26 Jul 2014 23:22:41 -0300 >>=20 >>=20 >> Emacs is still slow, but at least responds to commands. I feel that >> everything that could be optimized on the comint side is pretty much >> there and that the slowness being experienced is in fact related to the >> long-lines slowness bug mentioned before[0]. > > That bug is about displaying long lines. Is the code that is slow > involved in displaying such lines? If there's no display involved, > then the discussion you point to is not relevant. > > Also, please tell how long are your lines, on the average. > Yes, such code outputs a long line consisting of 841601 chars. One way to get that output in a file for testing is executing the following shell command: python -c 'print ([[[False] * 200 for i in range(3)] for j in range(200= )])' > /tmp/out.log Even opening that file in fundamental-mode makes Emacs slow. For instance calling `previous-line' from the end of buffer several times takes 1.1 seconds on average to complete. previous-line 30 33.263101639 1.1087700546 Next line is a bit more responsive though: next-line 30 14.028573178 0.4676191059 Operations seem to take longer and longer as point moves away from the beginning of buffer. Cheers, Fabi=C3=A1n