From owner-cvs-all Wed Nov 13 12:49:44 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1641B37B401; Wed, 13 Nov 2002 12:49:43 -0800 (PST) Received: from gw.nectar.cc (gw.nectar.cc [208.42.49.153]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8910D43E4A; Wed, 13 Nov 2002 12:49:42 -0800 (PST) (envelope-from nectar@nectar.cc) Received: from madman.nectar.cc (madman.nectar.cc [10.0.1.111]) by gw.nectar.cc (Postfix) with ESMTP id 172F510; Wed, 13 Nov 2002 14:49:42 -0600 (CST) Received: by madman.nectar.cc (Postfix, from userid 1001) id 9A969137BDD; Wed, 13 Nov 2002 14:49:41 -0600 (CST) Date: Wed, 13 Nov 2002 14:49:41 -0600 From: "Jacques A. Vidrine" To: Mike Silbersack Cc: Nate Lawson , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/bin/sleep sleep.c Message-ID: <20021113204941.GF29284@madman.nectar.cc> Mail-Followup-To: "Jacques A. Vidrine" , Mike Silbersack , Nate Lawson , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org References: <200211132012.gADKCQxr062768@repoman.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Url: http://www.celabo.org/ User-Agent: Mutt/1.5.1i-ja.1 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, Nov 13, 2002 at 03:32:13PM -0500, Mike Silbersack wrote: > > On Wed, 13 Nov 2002, Nate Lawson wrote: > > > njl 2002/11/13 12:12:26 PST > > > > Modified files: > > bin/sleep sleep.c > > Log: > > Remove getopt and strtol dependencies, reducing size of static exe. > > Preserve older desired behavior, accept [+-]*[0-9]*\.[0-9]* > > Remove a few unnecessary casts. > > Please don't commit crap like this. While having smaller binaries might > be nice, being entered into an obfuscated C contest is not one of the > goals of FreeBSD. Damn, and just as I was finishing up i386, alpha, and sparc assembler versions of these utilities to _really_ get the size down. I might finish anyway just so I can benchmark the old sleep binary with the new, more efficient sleep binary. Oh, and I found writing directly to /dev/kmem resulted in another 10% reduction in overhead for echo versus using write(2), but a small downside is that echo would have to be installed set-user-ID. Cheers, -- Jacques A. Vidrine http://www.celabo.org/ NTT/Verio SME . FreeBSD UNIX . Heimdal Kerberos jvidrine@verio.net . nectar@FreeBSD.org . nectar@kth.se To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message