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 <rep...@bugs.python.org>
<http://bugs.python.org/issue1442493>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to