From owner-cvs-src-old@FreeBSD.ORG Sat Mar 12 21:13:19 2011 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 684C71065709 for ; Sat, 12 Mar 2011 21:13:18 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id BBBCE8FC0C for ; Sat, 12 Mar 2011 21:13:18 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id p2CLDIac081921 for ; Sat, 12 Mar 2011 21:13:18 GMT (envelope-from dougb@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id p2CLDILO081920 for cvs-src-old@freebsd.org; Sat, 12 Mar 2011 21:13:18 GMT (envelope-from dougb@repoman.freebsd.org) Message-Id: <201103122113.p2CLDILO081920@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to dougb@repoman.freebsd.org using -f From: Doug Barton Date: Sat, 12 Mar 2011 21:13:08 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/etc rc.subr X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Mar 2011 21:13:19 -0000 dougb 2011-03-12 21:13:08 UTC FreeBSD src repository Modified files: etc rc.subr Log: SVN rev 219578 on 2011-03-12 21:13:08Z by dougb Use the allexport option in load_rc_config() in order to avoid having to repeatedly read the conf files. Depending on what is enabled the files are being read anywhere from 15, 30, or more times currently. By loading the values in the environment this is reduced to 1, with perhaps a couple more, again depending on what is enabled. The speed-up for boot and shutdown is negligible when rc.conf is on local disk, noticable when accessing files over NFS, and dramatic when pulling rc.conf values from a database. This change also includes a minor optimization to the conditional for $_rc_conf_loaded. Revision Changes Path 1.105 +3 -3 src/etc/rc.subr