From owner-freebsd-current Thu Jan 4 15:20:53 2001 From owner-freebsd-current@FreeBSD.ORG Thu Jan 4 15:20:51 2001 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from rover.village.org (unknown [204.144.255.66]) by hub.freebsd.org (Postfix) with ESMTP id 9A68737B400 for ; Thu, 4 Jan 2001 15:20:50 -0800 (PST) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.11.1/8.11.0) with ESMTP id f04NKnl09141; Thu, 4 Jan 2001 16:20:49 -0700 (MST) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.11.1/8.8.3) with ESMTP id f04NKm147924; Thu, 4 Jan 2001 16:20:48 -0700 (MST) Message-Id: <200101042320.f04NKm147924@harmony.village.org> To: Will Andrews Subject: Re: cvs commit: src/usr.bin/apply apply.c Cc: Garrett Wollman , current@FreeBSD.ORG In-reply-to: Your message of "Thu, 04 Jan 2001 17:20:05 EST." <20010104172004.P86630@argon.firepipe.net> References: <20010104172004.P86630@argon.firepipe.net> <200101041905.f04J5ou82617@freefall.freebsd.org> <200101041909.OAA61522@khavrinen.lcs.mit.edu> Date: Thu, 04 Jan 2001 16:20:48 -0700 From: Warner Losh Sender: imp@harmony.village.org Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message <20010104172004.P86630@argon.firepipe.net> Will Andrews writes: : What, exactly, are we trading off by making apply(1) a bit more : paranoid? A couple extra cpu cycles? Maybe you haven't noticed, but : these days there's almost nobody still using 100MHz chips. And out of : the ones that do, how many will use apply(1) more than once or twice in : the lifetime of the machine? First off, we do still have a significant part of the user base that is using older, slower machines. Many of them run embedded systems, some of which use apply(1). I have a big problem with this argument since it is doesn't understand the wide range of environments that FreeBSD runs in and runs very well in. Having said that, these patches are likely not to significantly slow things down. Apply tends to do a lot of I/O, which swamps the few extra instructions that the strl* or snprintf routines introduce. There's little reason to optimize things. I'm still not sure about the shell environment actually buying anything, but I could see how it might help. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message