From owner-cvs-sys Thu Feb 20 03:51:56 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id DAA07907 for cvs-sys-outgoing; Thu, 20 Feb 1997 03:51:56 -0800 (PST) Received: (from bde@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id DAA07900; Thu, 20 Feb 1997 03:51:54 -0800 (PST) Date: Thu, 20 Feb 1997 03:51:54 -0800 (PST) From: Bruce Evans Message-Id: <199702201151.DAA07900@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-sys Subject: cvs commit: src/sys/kern sys_generic.c Sender: owner-cvs-sys@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk bde 97/02/20 03:51:53 Modified: sys/kern sys_generic.c Log: Improved select(): - avoid malloc() if the number of fds is small. - pack the bits better so that `small' is quite large. - don't waste time generating zero bits for null fd_set pointers or scanning these bits. Possibly improved select(): - free malloc()ed storage before returning. This is simpler and I think huge select()s aren't worth optimizing since they are rare, relative gain would be small and there would be tiny costs for all selects(). Reviewed by: ache (first version by him too) Revision Changes Path 1.22 +51 -36 src/sys/kern/sys_generic.c