Philipp Hörist pushed to branch master at gajim / gajim
Commits: 71fb3d0b by Philipp Hörist at 2018-01-21T21:52:32+01:00 Improve network speed on Windows
Call select.select() with the smallest timeout possible
- - - - -
1 changed file:
- gajim/gui_interface.py
Changes:
===================================== gajim/gui_interface.py ===================================== --- a/gajim/gui_interface.py +++ b/gajim/gui_interface.py @@ -2342,7 +2342,13 @@ class Interface: # Otherwise, an exception will stop our loop
if sys.platform == 'win32': - timeout, in_seconds = 20, None + # On Windows process() calls select.select(), so we need this + # executed as often as possible. + # Adding it directly with GLib.idle_add() causes Gajim to use + # too much CPU time. Thats why its added with 1ms timeout. + # On Linux only alarms are checked in process(), so we use + # a bigger timeout + timeout, in_seconds = 1, None else: timeout, in_seconds = app.idlequeue.PROCESS_TIMEOUT
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/71fb3d0b4f7657dcf6d4e3dcc039080c617...
--- View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/71fb3d0b4f7657dcf6d4e3dcc039080c617... You're receiving this email because of your account on dev.gajim.org.