> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Alexander Pevzner
> Sent: Monday, December 17, 2007 7:01 AM
> To: [email protected]
> Subject: Re: [p2p-hackers] MTU in the real world
> 
> Serguei Osokine wrote:
> 
> >     I mean, if the socket would try to block, then some extra time
> > would be spent on select() calls (as I saw happening when I tried to
> > call the blocking sendto() only after select() was giving me the go-
> > ahead signal; this was only increasing the thread overhead without
> > affecting the sendto() timing or CPU use). And if the socket would 
> > not try to block, then what is the difference between blocking and 
> > non-blocking timing, right?
> 
> Please note, select() usage is extremely expensive on Windows.

Based on anecdotal evidence, the performance of the select() depends
on the actual value of the socket handle. So on a high-churn systems
select() gets slower with time.

2c

Alex

_______________________________________________
p2p-hackers mailing list
[email protected]
http://lists.zooko.com/mailman/listinfo/p2p-hackers

Reply via email to