From owner-freebsd-current@FreeBSD.ORG Wed Apr 14 06:37:38 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from green.homeunix.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 142A216A4CE; Wed, 14 Apr 2004 06:37:38 -0700 (PDT) Received: from localhost (green@localhost [127.0.0.1]) by green.homeunix.org (8.12.11/8.12.11) with ESMTP id i3EDbaA9046124; Wed, 14 Apr 2004 09:37:36 -0400 (EDT) (envelope-from green@green.homeunix.org) Message-Id: <200404141337.i3EDbaA9046124@green.homeunix.org> X-Mailer: exmh version 2.6.3 04/04/2003 with nmh-1.0.4 To: Colin Percival In-Reply-To: Message from Colin Percival <6.0.1.1.1.20040414065121.039cde20@imap.sfu.ca> From: "Brian F. Feldman" Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 14 Apr 2004 09:37:36 -0400 Sender: green@green.homeunix.org cc: Peter Jeremy cc: current@freebsd.org Subject: Re: Optimizing RCng execution speed ? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Apr 2004 13:37:38 -0000 Colin Percival 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. \,,,,,,,,,,,,,,,,,,,,,,\