Changhao wrote:
> I am implementing a protocol on top of 'asyncore.dispatcher' to
> send streaming multimedia data over TCP socket. However, I found that
> the throughput of my current implementation is surprisingly low.
I'm not sure what you think you're doing in your code, but I'm quite
I figured out the reason. It was because of asyncore.dispatcher's
inefficient implementation of messange sending. Instead of using its
'push' method. I directly call the underlying 'socket.send' and got the
problem solved. Sorry about the spam.
Thanks
Changhao wrote:
> Hi, friends,
>
> I
Hi, friends,
I am implementing a protocol on top of 'asyncore.dispatcher' to
send streaming multimedia data over TCP socket. However, I found that
the throughput of my current implementation is surprisingly low.
Below is a snippet of my code with a note that: the packet sent
over the