TCP Portforwarding
Cameron Laird
claird at lairds.com
Tue May 20 16:12:41 EDT 2003
In article <mailman.1053195627.16999.python-list at python.org>,
Dave Brueck <dave at pythonapocrypha.com> wrote:
.
.
.
>> What are the pros and cons of select vs. poll?
>
>Poll is more efficient and can handle a larger number of active
>connections. If you're doing less than about 1000 then it won't matter too
>much which you use.
>
>-Dave
>
All true, and expressed with precision.
However, naive developers sometimes infer very shaky
conclusions from these propositions. select is quite
efficient--more than many people realize--and
generally a safe recommendation. What can really go
wrong in this area is that the misguided think that
they should avoid select, and so start polling in a
multithreaded arrangement (!). I've never seen *that*
come to a happy end.
--
Cameron Laird <Cameron at Lairds.com>
Business: http://www.Phaseit.net
Personal: http://phaseit.net/claird/home.html
More information about the Python-list
mailing list