From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-dev-return-2469-arch-gentoo-dev=gentoo.org@gentoo.org>
Received: (qmail 25400 invoked by uid 1002); 20 Apr 2003 04:51:03 -0000
Mailing-List: contact gentoo-dev-help@gentoo.org; run by ezmlm
Precedence: bulk
List-Post: <mailto:gentoo-dev@gentoo.org>
List-Help: <mailto:gentoo-dev-help@gentoo.org>
List-Unsubscribe: <mailto:gentoo-dev-unsubscribe@gentoo.org>
List-Subscribe: <mailto:gentoo-dev-subscribe@gentoo.org>
List-Id: Gentoo Linux mail <gentoo-dev.gentoo.org>
X-BeenThere: gentoo-dev@gentoo.org
Received: (qmail 27870 invoked from network); 20 Apr 2003 04:51:01 -0000
Date: Sun, 20 Apr 2003 17:03:39 +1200
From: "leon j. breedt" <ljb@neverborn.org>
To: gentoo-dev@gentoo.org
Message-ID: <20030420050339.GA1509@jeddah.mshome.net>
References: <20030419105721.GA1614@jeddah.neverborn.ORG> <1050776776.3688.6.camel@ndiin> <20030420003917.GB32124@jeddah.neverborn.ORG>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii; x-action=pgp-signed
Content-Disposition: inline
In-Reply-To: <20030420003917.GB32124@jeddah.neverborn.ORG>
User-Agent: Mutt/1.5.4i
Subject: Re: [gentoo-dev] rc-scripts speedup - or not :/
X-Archives-Salt: a3fb58ca-d500-4dcc-bf24-18a229a7c5f8
X-Archives-Hash: be0406a64499b3a7806f9c7bd13240d2

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sun, Apr 20, 2003 at 12:39:17PM +1200, leon j. breedt wrote:
> well, i went for the all-out approach, and replaced every invocation
> with LC_ALL=C <cmd>, and did the export LC_ALL=C before all occurences
> of "x start|stop". it felt a bit faster..i'm going to revert to the
> existing rc-scripts and see if i can feel a difference.
okay, its bad form to reply to your own posts...but i did some very crappy
benchmarking (cat /proc/uptime >/tmp/boottime in /etc/conf.d/local.start),
and booted each set of rc-scripts 10 times.

results inconclusive...sometimes LC_ALL=C booted faster, sometimes without
did. and with either enabled, boot times would fluctuate between 17 and
15.9 seconds for a full boot, no clear win with LC_ALL=C enabled.

i did some more research, and it seems this hack is necessary on Red Hat
because they set LANG to a UTF locale on bootup. something which Gentoo
doesn't do. at least, a grep for LANG in /etc turned up nothing.

unless grep/awk default to a UTF locale in the absence of LANG,
it seems Gentoo is already as fast as it can be in this regard. 

i think a note should be made if Gentoo at some point in the
is going to set LANG, though.

sorry about blowing smoke...i think i just witnessed one of faster bootups
after changing to LC_ALL=C. this will teach me...

leon

- -- 
in the beginning, was the code.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+oiorRWcl5mzp4f4RAvshAJ0SR/gF1HN9bZ9xRMyxmJ2iihlCogCgtsMK
uQ8auRfK4rLS+p7TQEQQug8=
=QTVk
-----END PGP SIGNATURE-----

--
gentoo-dev@gentoo.org mailing list