On Sat, May 3, 2008 at 11:13 AM, Stelian Ionescu
> I've attached a patch that adds an implementation of
> SB-SYS:WAIT-UNTIL-FD-USABLE which uses poll() directly instead using
> serve-event. In the context of polling a single file descriptor
> serve-event is unnecessary and slow since it involves adding and
> removing a handler each time.
> The patch is only for *nix systems, the old implementation is still
> there for #!+win32.
The numbers are nice, and the code looks good at a glance, but there
seems to be a loss of fuctionality here: if ADD-FD-HANDLER has been
called, W-U-F-U should run those handlers when it can. This doesn't
seem to happen anymore with your patch. At minimum you should check it
other handlers exist, and use the old code in that case.
By the way, it would be nice if you could post the benchmark code you used.