From owner-cvs-all@FreeBSD.ORG Fri Aug 26 11:16:40 2005 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 729C516A41F; Fri, 26 Aug 2005 11:16:40 +0000 (GMT) (envelope-from des@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3255F43D46; Fri, 26 Aug 2005 11:16:40 +0000 (GMT) (envelope-from des@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j7QBGeIj039369; Fri, 26 Aug 2005 11:16:40 GMT (envelope-from des@repoman.freebsd.org) Received: (from des@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j7QBGeVg039368; Fri, 26 Aug 2005 11:16:40 GMT (envelope-from des) Message-Id: <200508261116.j7QBGeVg039368@repoman.freebsd.org> From: Dag-Erling Smorgrav Date: Fri, 26 Aug 2005 11:16:40 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/kern kern_descrip.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Aug 2005 11:16:40 -0000 des 2005-08-26 11:16:40 UTC FreeBSD src repository Modified files: sys/kern kern_descrip.c Log: Two minor optimizations of fdalloc(): - if minfd < fd_freefile (as is most often the case, since minfd is usually 0), set it to fd_freefile. - remove a call to fd_first_free() which duplicates work already done by fdused(). This change results in a small but measurable speedup for processes with large numbers (several thousands) of open files. PR: kern/85176 Submitted by: Divacky Roman MFC after: 3 weeks Revision Changes Path 1.280 +3 -1 src/sys/kern/kern_descrip.c