I have some python code that was written by a developer before me. I开发者_开发知识库t sends UDP messages to nodes in a P2P network. I am writing a parallel version of that code. This code sends multiple parallel messages to the P2P network. Unfortunately, the code is consuming too much CPU. I am assuming it is because of all the network I/O polling. Will it be a good idea if I used asynchronous I/O (twisted framework)?
Yes.
精彩评论