r/Python • • Sep 09 '22

Discussion Async Python is not faster

https://calpaterson.com/async-python-is-not-faster.html
0 Upvotes

47 comments sorted by

View all comments

21

u/rouille Sep 09 '22

I think this misses the main appeal of async. It's not about speed but about the programming model. Async makes it much easier to work with and compose concurrency compared to the thread based model. Just the fact that you can cancel tasks makes it trivial to do proper timeouts, which nobody gets right in sync applications, for example.

It also allows things like structured concurrency.

-5

u/benefit_of_mrkite Sep 09 '22

It’s also worth mentioning that not all operations make sense for async - file system ops are are blocking.

The main purpose of asynchronous in python is working around the GIL

0

u/[deleted] Sep 09 '22

[deleted]

-1

u/benefit_of_mrkite Sep 09 '22

I didn’t say it was the only reason I said it was the main reason. Don’t twist my words especially when you are quoting them.