What do you think about using a coroutine pool to handle the event tasks listened by epoll in the poller thread? Would this improve performance? Is there a big difference between one thread handling multiple tasks and starting several coroutines in a thread to handle tasks? For example, in network communication, the tasks handled by the poller thread are mostly IO tasks. If they are replaced with coroutines, performance should improve somewhat. Can the author give some suggestions? Thanks.
What do you think about using a coroutine pool to handle the event tasks listened by epoll in the poller thread? Would this improve performance? Is there a big difference between one thread handling multiple tasks and starting several coroutines in a thread to handle tasks? For example, in network communication, the tasks handled by the poller thread are mostly IO tasks. If they are replaced with coroutines, performance should improve somewhat. Can the author give some suggestions? Thanks.
TRANS_BY_GITHUB_AI_ASSISTANT