Socket performance

Navkirat Singh navkirats at gmail.com
Fri Jul 23 22:22:53 EDT 2010


Thanks for the info : ). I will look into it ! Right now I am having a  
strange problem. I am trying to use cookies and the import function  
returns an error:

I am using python 3:

from http import cookies

importError: No module named http

Is it my configuration or has something changed since the  
documentation was written? Sorry I might be asking too many question,  
I am pretty new to this stuff and kinda feel lost here and there : (

Thanks,
Nav



On 24-Jul-2010, at 6:34 AM, MRAB wrote:

> Navkirat Singh wrote:
>> Hey Everyone,
>> I had a question, programming sockets, what are the things that  
>> would degrade performance and what steps could help in a  
>> performance boost? I would also appreciate being pointed to some  
>> formal documentation or article.
>> I am new to this.
> Interleaving processing and sending/receiving might reduce throughput
> because when you're processing the socket is idle (depending on how  
> much
> buffering there is). You could do the socket stuff in another thread  
> so
> that it's not waiting for the processing to finish while there is data
> available, and use a queue to transfer the data between that thread  
> and
> the processing thread.
> -- 
> http://mail.python.org/mailman/listinfo/python-list

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20100724/c6ada887/attachment-0001.html>


More information about the Python-list mailing list