[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#16875: python, comint-mode: Large output makes Emacs freeze
From: |
Andreas Röhler |
Subject: |
bug#16875: python, comint-mode: Large output makes Emacs freeze |
Date: |
Wed, 25 Jun 2014 07:27:01 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Icedove/24.6.0 |
On 25.06.2014 03:19, Fabián Ezequiel Gallina wrote:
This looks related to:
http://debbugs.gnu.org/cgi/bugreport.cgi?bug=13675
To a certain extend.
There some more operations done by comint, which aren't needed when executing
Python code from source but may slow down it.
Thus solution in python-mode.el is to surpass comint-mode completely and use
"start-process" and "process-send-string"
See py-fast-process.
Some ways to attenuate irresponsiveness:
1. Disable python shell font-locking:
(setq python-shell-enable-font-lock nil)
2. Use Python's pprint to print such expressions, this makes it behave
pretty much like iPython:
>>> import pprint
>>> pprint.pprint([[[False] * 200 for i in range(3)] for j in
range(200)])
Indeed, "pprint" should solve it already. Maybe make that the default? IMO
looks better anyway.
Andreas