[issue1442493] IDLE shell window gets very slow when displaying long lines

Louie Lu report at bugs.python.org
Tue Jul 18 01:05:17 EDT 2017


Louie Lu added the comment:

Besides warping text, there has a performance issue inside the RPCServer and Client.

The (console, write, (text, file), {}) command is sent by server `asynccall`->`putmessage`. It should be sent by chunk size to client, and render on IDLE shell.

The result is performed as sent by chunk size, but the client will gather all chunk until it receives all data, then render on IDLE shell.

This cause the shell seems like hanging there, and doing nothing (in REPL, it will output the long string to stdout and so on).

We can manually detect this then manully chunk out (console, write, args, kwargs) command's args size, so that it will look like not hanging there.

The attach patch is a PoC about this.

-----

For the text widget performance, I dislike the wrap method, it shouldn't be a limit to the user on IDLE (GUI IDE), even it can be set to 80 or 100 or whatever.

----------
nosy: +louielu
versions: +Python 3.7
Added file: http://bugs.python.org/file47022/0001-IDLE-shell-test.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1442493>
_______________________________________


More information about the Python-bugs-list mailing list