Date: Sat, 12 Mar 2011 21:13:08 +0000 (UTC) From: Doug Barton <dougb@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/etc rc.subr Message-ID: <201103122113.p2CLDILO081920@repoman.freebsd.org>
index | next in thread | raw e-mail
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
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201103122113.p2CLDILO081920>
