zlacker

[parent] [thread] 1 comments
1. andrew+(OP)[view] [source] 2024-01-19 23:41:01
>> Python is so slow you gain nothing with async.

It’s not necessarily about speed, though this statement above is flat out wrong.

async in Python allows you to build different types of applications. For example you can attach a task to stdout of another process and read and process it.

replies(1): >>bvrmn+W1
2. bvrmn+W1[view] [source] 2024-01-19 23:57:09
>>andrew+(OP)
> For example you can attach a task to stdout of another process and read and process it.

How max many processes you handled in this fashion? The catch is: if you need thousands than asyncio has too much overhead and you need manual epoll. If less threads are much easier to use and acceptable performance wise.

[go to top]