From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Wolfgang Jenkner Newsgroups: gmane.emacs.bugs Subject: bug#21077: 24.5; Slow printing in inferior python buffer with python-shell-enable-font-lock Date: Sat, 01 Aug 2015 14:36:23 +0200 Message-ID: <85vbcz5gl3.fsf@iznogoud.viz> 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 1438432765 29400 80.91.229.3 (1 Aug 2015 12:39:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 1 Aug 2015 12:39:25 +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 14:39:13 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 1ZLW4F-0001nd-Tm for geb-bug-gnu-emacs@m.gmane.org; Sat, 01 Aug 2015 14:39:12 +0200 Original-Received: from localhost ([::1]:53727 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZLW4F-00079L-8N for geb-bug-gnu-emacs@m.gmane.org; Sat, 01 Aug 2015 08:39:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50935) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZLW4B-00079G-Ox for bug-gnu-emacs@gnu.org; Sat, 01 Aug 2015 08:39:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZLW46-00065R-Ps for bug-gnu-emacs@gnu.org; Sat, 01 Aug 2015 08:39:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34894) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZLW46-00065L-Nh for bug-gnu-emacs@gnu.org; Sat, 01 Aug 2015 08:39:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZLW46-0000LD-BY for bug-gnu-emacs@gnu.org; Sat, 01 Aug 2015 08:39:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Wolfgang Jenkner Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 01 Aug 2015 12:39: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.14384327181265 (code B ref 21077); Sat, 01 Aug 2015 12:39:02 +0000 Original-Received: (at 21077) by debbugs.gnu.org; 1 Aug 2015 12:38:38 +0000 Original-Received: from localhost ([127.0.0.1]:36340 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZLW3i-0000KL-4g for submit@debbugs.gnu.org; Sat, 01 Aug 2015 08:38:38 -0400 Original-Received: from b2bfep13.mx.upcmail.net ([62.179.121.58]:34675) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZLW3e-0000K7-UK for 21077@debbugs.gnu.org; Sat, 01 Aug 2015 08:38:35 -0400 Original-Received: from edge11.upcmail.net ([192.168.13.81]) by b2bfep13.mx.upcmail.net (InterMail vM.8.01.05.11 201-2260-151-128-20120928) with ESMTP id <20150801123833.CZEL2939.b2bfep13-int.chello.at@edge11.upcmail.net> for <21077@debbugs.gnu.org>; Sat, 1 Aug 2015 14:38:33 +0200 Original-Received: from iznogoud.viz ([91.119.209.86]) by edge11.upcmail.net with edge id zQeY1q00d1sPNFv0BQeY0C; Sat, 01 Aug 2015 14:38:33 +0200 X-SourceIP: 91.119.209.86 Original-Received: from wolfgang by iznogoud.viz with local (Exim 4.85 (FreeBSD)) (envelope-from ) id 1ZLW3c-0003EV-8i; Sat, 01 Aug 2015 14:38:32 +0200 User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.50 (berkeley-unix) 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:105267 Archived-At: On Fri, Jul 31 2015, Ista Zahn wrote: > 1. Start emacs with 'emacs -Q' > 2. Type 'M-x ielm' then '(number-sequence 1 9999)' > 3. Type 'M-x eshell' then 'number-sequence 1 9999 RET' > 4. Type 'M-x shell' then 'python -c "print(list(range(9999)))" RET' > 5. Type 'M-x run-python' then 'print(list(range(9999))) RET' > > For me 1-3 print relatively quickly, 4 prints relatively slowly, and > _only_ 5 is so slow that I consider it non-functional. This bug report > is about issue 5 above. I tested this with the current (bdd370b) vanilla emacs -Q master and also a slightly older (78c3e14, not quite vanilla) version and I find that 5 takes about 20 seconds while 4 takes about 30 seconds to print the whole list (and the next prompt). So, the reason for the behaviour you reported (and Eli confirmed) might be elsewhere than in font-locking? I compiled emacs with ./configure --prefix=/usr/opt --with-x --with-x-toolkit=no --without-rsvg --without-cairo --without-gsettings --with-file-notification=no --without-compress-install and the beginning of the python buffer is Python 2.7.10 (default, Jul 4 2015, 12:57:42) [GCC 4.2.1 Compatible FreeBSD Clang 3.4.1 (tags/RELEASE_34/dot1-final 208032)] on freebsd10 Type "help", "copyright", "credits" or "license" for more information. >>> python.el: readline is available >>> python.el: sent setup code >>> print(list(range(9999))) I've also a ~/.pythonrc.py which contains import rlcompleter, readline readline.parse_and_bind('tab: complete')