From owner-freebsd-commit Tue Oct 17 21:42:52 1995 Return-Path: owner-commit Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id VAA25902 for freebsd-commit-outgoing; Tue, 17 Oct 1995 21:42:52 -0700 Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id VAA25881 for cvs-all-outgoing; Tue, 17 Oct 1995 21:42:44 -0700 Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id VAA25870 for cvs-lib-outgoing; Tue, 17 Oct 1995 21:42:41 -0700 Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id VAA25855 ; Tue, 17 Oct 1995 21:42:24 -0700 Received: (from bde@localhost) by godzilla.zeta.org.au (8.6.9/8.6.9) id OAA10353; Wed, 18 Oct 1995 14:41:56 +1000 Date: Wed, 18 Oct 1995 14:41:56 +1000 From: Bruce Evans Message-Id: <199510180441.OAA10353@godzilla.zeta.org.au> To: CVS-commiters@freefall.freebsd.org, cvs-lib@freefall.freebsd.org, davidg@freefall.freebsd.org Subject: Re: cvs commit: src/lib/libc/stdlib getenv.c Sender: owner-commit@FreeBSD.org Precedence: bulk > Modified: lib/libc/stdlib getenv.c > Log: > Doubled the performance of getenv()/__findenv() by rewriting it to not > use strncmp().. The __findenv() wart is now duplicated. It is inlined in getenv() and exported for use by only (?) setenv(). It should be `static inline' in a private header file and inlined by both (if it is worth inlining at all). Bruce