Re: Optimizing RCng execution speed ?

From: Brian F. Feldman <green_at_freebsd.org>
Date: Wed, 14 Apr 2004 09:37:36 -0400
Colin Percival <colin.percival_at_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_at_FreeBSD.org                               \  The Power to Serve! \
 Opinions expressed are my own.                       \,,,,,,,,,,,,,,,,,,,,,,\
Received on Wed Apr 14 2004 - 04:37:38 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:51 UTC