Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Apr 2004 09:37:36 -0400
From:      "Brian F. Feldman" <green@freebsd.org>
To:        Colin Percival <colin.percival@wadham.ox.ac.uk>
Cc:        current@freebsd.org
Subject:   Re: Optimizing RCng execution speed ? 
Message-ID:  <200404141337.i3EDbaA9046124@green.homeunix.org>
In-Reply-To: Message from Colin Percival <colin.percival@wadham.ox.ac.uk>  <6.0.1.1.1.20040414065121.039cde20@imap.sfu.ca> 

next in thread | previous in thread | raw e-mail | index | archive | help
Colin Percival <colin.percival@wadham.ox.ac.uk> wrote:
> At 21:00 13/04/2004, Peter Jeremy wrote:
> >The time-consuming bits are starting a new shell and sourcing the
> >config files.
> 
>   Not quite.  The main configuration files don't get re-sourced
> each time -- rc.subr uses an "_rc_conf_loaded" variable to avoid
> this.  However, rc.subr itself gets re-sourced, which seems quite
> unnecessary; removing this (via an _rc_subr_loaded variable) gives
> a roughly 20% speedup.

Awesome!  Commit Commit Commit :)  We also need someone to do the same for 
ports these days...

-- 
Brian Fundakowski Feldman                           \'[ FreeBSD ]''''''''''\
  <> green@FreeBSD.org                               \  The Power to Serve! \
 Opinions expressed are my own.                       \,,,,,,,,,,,,,,,,,,,,,,\




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200404141337.i3EDbaA9046124>