Use poll() instead of select()

Shridhar Daithankar kde-optimize@mail.kde.org
Thu, 30 Jan 2003 16:11:50 +0530


On 30 Jan 2003 at 11:28, Lubos Lunak wrote:

> On Thursday 30 of January 2003 11:15, Jaime Torres wrote:
> > Hello,
> >
> >   I have done a small test with the very recent kde 3.1 on a
> > linux-i686-2.4.20.
> >
> >   I have readed in http://www.kegel.com/dkftpbench/Poller_bench.html
> >   that poll() is faster than select() on Linux,*BSD and I thinked that also
> > in comercial unixes, but I know that poll() is simpler to use than
> > select().
> 
>  From the URL:
> (for 100 fds)  
>  call       microseconds
>  select  54
>  poll     50

Isn't that data little too old? 2.2.14 is really old.

Anyway how many connections does DCOP server entertains? Even if it is a high 
cost operation, if it is not getting hit pretty frequently, then it should be 
OK. Isn't it?

Bye
 Shridhar

--
Abstainer, n.:	A weak person who yields to the temptation of denying himself a	
pleasure.		-- Ambrose Bierce, "The Devil's Dictionary"