High performance IO on non-blocking sockets
Troels Walsted Hansen
troels at thule.no
Sat Mar 15 07:53:16 EST 2003
Jeremy Hylton wrote:
> On Fri, 2003-03-14 at 05:42, Troels Walsted Hansen wrote:
>>All these three approaches have faults. #1 will cause memory fragmentation
>>by allocating len(data) strings (in an unlikely worst case, recv() returns 1
>>byte for each recv()).
> What's the expected case?
Well... I guess that really depends on the speed of the network and the
CPU, as well as the interval between calls to recv().
--
Troels Walsted Hansen
More information about the Python-list
mailing list