diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2018-10-04 09:09:16 -0700 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2018-10-04 09:15:58 -0700 |
commit | e96adc4bafd72aee7380020a6e1f92a055358d86 (patch) | |
tree | 97fb7b36ae2088ae36cd1d1c474c5de94d6232c2 /alot/ui.py | |
parent | 52f92e891a09796ef4212ed355e8ce0faede9d79 (diff) |
Go back to Twisted event loop
Urwid + asyncio has been known to have very high CPU usage for 4 years
now, and it hasn't been fixed. That basically makes it impossible to
switch event loops. We can still get the asyncio syntax goodness but
using the twisted asyncioreactor and then initializing urwid with the
Twisted loop which doesn't have this problem.
Fixes #1302
Diffstat (limited to 'alot/ui.py')
-rw-r--r-- | alot/ui.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -115,7 +115,7 @@ class UI(object): self.mainloop = urwid.MainLoop( self.root_widget, handle_mouse=settings.get('handle_mouse'), - event_loop=urwid.AsyncioEventLoop(), + event_loop=urwid.TwistedEventLoop(), unhandled_input=self._unhandled_input, input_filter=self._input_filter) |