> In fs/select.c version 2.2.14 there is a comment in sys_select...
> /*
> * We ought to optimise the n=0 case - it is used enough..
> */
>
> if (n < 0)
> goto out_nofds;
> but this comment is gone in 2.3.99pre2. would this no longer be
> a useful optimization?
Only the comment is gone -- the code is still there. I'm not sure it
is a useful optimization, and anyhow, I think it really should be:
if(n <= 0)
goto out_nofds;
because you pass x+1 to select where x is your highest fd you want to
test for... (or n<1, whichever you prefer).
-cw
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Fri Mar 31 2000 - 21:00:28 EST