Subject: Re: poll(2) oddity
To: <>
From: David Laight <david@l8s.co.uk>
List: tech-userlevel
Date: 07/08/2002 08:39:20
On Sun, Jul 07, 2002 at 06:37:57PM -0400, Bill Sommerfeld wrote:
> > Could it be coded so that the list is read in chunks and
> > the main data area only allocated for slots with non -ve
> > fd numbers?
> 
> So, in the common case (all slots in the poll array are in use), this
> (a) needs more space, and (b) takes more time.  Slowing down the
> common case to speed up uncommon cases is generally considered a bad
> design tradeoff.

Not if done carefully...
I might look at the code today.

	David

-- 
David Laight: david@l8s.co.uk