#3207: Core: migrate from Twisted to Asyncio
------------------------------+---------------------------
Reporter: andar | Owner: andar
Type: feature-request | Status: new
Priority: major | Milestone: 2.0.0
Component: Core | Version: develop (git)
Resolution: | Keywords:
------------------------------+---------------------------
Comment (by andar):
IMHO, the biggest gain from using asyncio over Twisted is more readable
code. The use of deferreds and the nested functions all over the place
would go away. Using the await keyword makes things read more like
synchronous code.
In regards to the amount of work, I don't think it will be that bad for
the Core. It will mostly just converting functions to coroutines and
replacing d.addCallbacks, etc.. with awaits. The UIs could continue to use
Twisted if it will be too much work to convert them.
Twisted is overkill for what we actually need in Deluge, it just happened
to be the only library at the time to offer the things we did need.
We could use aiohttp[0] for both httpdownloader and the web server.
For GTK3, we could use gbulb[1], but I'm not sure of the Windows support.
If we need to stay with Twisted for GTK ui, that's OK, but it'd be nice to
convert at some point. We should also consider that the future of Deluge
may be just a new Web UI.
[0] - https://aiohttp.readthedocs.io/en/stable/
[1] - https://github.com/nathan-hoad/gbulb
--
Ticket URL: <https://dev.deluge-torrent.org/ticket/3207#comment:3>
Deluge <http://deluge-torrent.org/>
Deluge Project
--
You received this message because you are subscribed to the Google Groups
"Deluge Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/deluge-dev.
For more options, visit https://groups.google.com/d/optout.