Charles-François Natali added the comment: > Charles-François Natali added the comment: > > Hmmm... > Basically, with a much smaller socket buffer, we get much more context > switches, which increases drastically the test runtime. > But I must admit I'm still really surprised by the time it takes on > OS-X: with a SOCK_MAX_SIZE of 16MB and a socket buffer size of 8kb, > that's 2000 calls to send with context switches between the sender and > receiver - and thie overhead should be much less on a two core > machine.
OK, actually the receiver is completely CPU-bound, because of memory allocation for the socket.recv() buffer I'll play with recv_into() and profile a bit more. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue23285> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com