[issue45804] IDLE - faster shell writing

2021-11-21 Thread wyz23x2
Change by wyz23x2 : -- assignee: -> terry.reedy components: +IDLE ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue45804] IDLE - faster shell writing

2021-11-14 Thread Roger Serwy
Roger Serwy added the comment: All good questions, Terry! I do have a git clone of the cpython repo, but I haven't worked through the new commit/patch process since Mercurial. I'm a bit rusty. The buffering provided is for calls to `write`. It does not do any line buffering. Calls to

[issue45804] IDLE - faster shell writing

2021-11-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thank you Roger. Good to hear from you. https://stackoverflow.com/questions/66286367/why-is-my-function-faster-than-pythons-print-function-in-idle, Feb 2021, was about this issue. In my answer I verified the claim and then showed in further experiments

[issue45804] IDLE - faster shell writing

2021-11-13 Thread Roger Serwy
New submission from Roger Serwy : The shell provided by IDLE uses synchronous sys.stdout.write() calls between the subprocess and the front-end, leading to very slow writes. The provided patch proposes buffering the stdout/stderr streams in the subprocess and then sending a single update