[issue36408] Tkinter multi-processing performance, Linux 10-25 times faster than Windows 10

Steve Dower report at bugs.python.org
Mon Mar 25 12:14:38 EDT 2019


Steve Dower <steve.dower at python.org> added the comment:

Windows only allows a single thread to access Win32 GUI elements at a time, and I'm fairly sure whichever part of Tcl/Tk/Tkinter is responsible for this makes sure it happens.

So if you're throwing lots of UI updates at the UI thread, then yeah, you're going to cause massive contention there. Not sure there's any way around it other than "don't do that" - while you *could* lock individual data structures, Windows doesn't permit that because it turns out people get it wrong and make programs that crash.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36408>
_______________________________________


More information about the Python-bugs-list mailing list