From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#21077: 24.5; Slow printing in inferior python buffer with python-shell-enable-font-lock Date: Fri, 31 Jul 2015 18:07:09 -0400 Message-ID: References: <83615k6jf7.fsf@gnu.org> <834ml37v7a.fsf@gnu.org> <83380n6zrn.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1438380503 26039 80.91.229.3 (31 Jul 2015 22:08:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 31 Jul 2015 22:08:23 +0000 (UTC) Cc: 21077@debbugs.gnu.org To: Ista Zahn Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Aug 01 00:08:12 2015 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 1ZLITJ-0007rz-RA for geb-bug-gnu-emacs@m.gmane.org; Sat, 01 Aug 2015 00:08:10 +0200 Original-Received: from localhost ([::1]:46159 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZLITI-00063p-RU for geb-bug-gnu-emacs@m.gmane.org; Fri, 31 Jul 2015 18:08:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47107) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZLITG-00063k-7p for bug-gnu-emacs@gnu.org; Fri, 31 Jul 2015 18:08:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZLITC-0004Dq-Sh for bug-gnu-emacs@gnu.org; Fri, 31 Jul 2015 18:08:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34675) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZLITC-0004Df-QX for bug-gnu-emacs@gnu.org; Fri, 31 Jul 2015 18:08:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZLITC-0003QQ-Cu for bug-gnu-emacs@gnu.org; Fri, 31 Jul 2015 18:08:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 31 Jul 2015 22:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21077 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21077-submit@debbugs.gnu.org id=B21077.143838043813115 (code B ref 21077); Fri, 31 Jul 2015 22:08:02 +0000 Original-Received: (at 21077) by debbugs.gnu.org; 31 Jul 2015 22:07:18 +0000 Original-Received: from localhost ([127.0.0.1]:36121 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZLIST-0003PS-BM for submit@debbugs.gnu.org; Fri, 31 Jul 2015 18:07:18 -0400 Original-Received: from smtp207.alice.it ([82.57.200.103]:16944) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZLISQ-0003PG-1X for 21077@debbugs.gnu.org; Fri, 31 Jul 2015 18:07:15 -0400 Original-Received: from fmsmemgm.homelinux.net (95.224.31.198) by smtp207.alice.it (8.6.060.28) id 55BB66530022AB30; Sat, 1 Aug 2015 00:07:12 +0200 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 769B2AE091; Fri, 31 Jul 2015 18:07:09 -0400 (EDT) In-Reply-To: (Ista Zahn's message of "Thu, 30 Jul 2015 20:27:15 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (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:105254 Archived-At: >> As mentioned, font-lock is but one of the parts of Emacs that slow down >> as lines get longer. > I'm not all that concerned with things slowing down slightly, Neither am I. All the others I care about also end up rendering Emacs unusable. They just show up at different times, or start biting you at different line lengths. >> In the case of comint modes, rather than disable font-lock we should >> refrain from font-locking the text after the last \n (since that's the >> line that keeps getting expanded, so we end up re-font-locking it O(N) >> times for a line of length N, for a total amount of work of O(N^2)). >> IIRC I have a similar hack in grep.el or compile.el. > OK, but unless there are clear plans to fix this soon the default value of > python-shell-enable-font-lock should be changed to nil until such time as a > fix is in place. I disagree. All comint modes suffer from this problem, AFAIK, and I don't see why Python programs would be more likely to generate long lines than programs in other languages. But yes, I'd really be happy to see some tentative patch along the lines I outlined above. Stefan