From owner-freebsd-current@FreeBSD.ORG Tue Sep 5 07:41:45 2006 Return-Path: X-Original-To: freebsd-current@FreeBSD.org Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 49FFE16A4E8; Tue, 5 Sep 2006 07:41:45 +0000 (UTC) (envelope-from keramida@FreeBSD.org) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id 87D2A43D5E; Tue, 5 Sep 2006 07:41:34 +0000 (GMT) (envelope-from keramida@FreeBSD.org) Received: from gothmog.pc (host5.bedc.ondsl.gr [62.103.39.229]) (authenticated bits=128) by igloo.linux.gr (8.13.7/8.13.7/Debian-2) with ESMTP id k857eTI8014944 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 5 Sep 2006 10:41:01 +0300 Received: from gothmog.pc (gothmog [127.0.0.1]) by gothmog.pc (8.13.7/8.13.7) with ESMTP id k857eihg087741; Tue, 5 Sep 2006 10:40:48 +0300 (EEST) (envelope-from keramida@FreeBSD.org) Received: (from giorgos@localhost) by gothmog.pc (8.13.7/8.13.7/Submit) id k857ei80087740; Tue, 5 Sep 2006 10:40:44 +0300 (EEST) (envelope-from keramida@FreeBSD.org) Date: Tue, 5 Sep 2006 10:40:43 +0300 From: Giorgos Keramidas To: Garance A Drosehn Message-ID: <20060905074043.GA87471@gothmog.pc> References: <200608281545.k7SFjn6l063922@lurza.secnetix.de> <200609020956.54008.Lucas.James@ldjcs.com.au> <20060902031247.GE749@turion.vk2pj.dyndns.org> <20060904192006.GA3292@turion.vk2pj.dyndns.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="BXVAT5kNtrzKuDFl" Content-Disposition: inline In-Reply-To: X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (score=-3.006, required 5, autolearn=not spam, AWL -0.41, BAYES_00 -2.60, UNPARSEABLE_RELAY 0.00) X-Hellug-MailScanner-From: keramida@freebsd.org X-Spam-Status: No Cc: Peter Jeremy , freebsd-current@FreeBSD.org, Julian Elischer Subject: Re: Adding a '-D date' option to `cat' X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Tue, 05 Sep 2006 07:41:45 -0000 --BXVAT5kNtrzKuDFl Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On 2006-09-05 03:28, Garance A Drosehn wrote: > I intend to commit this within a few days, unless there are major > objections to it. I am posting this HEADSUP under a new subject, > so people can dump all kinds of paint over me before I commit it. > > [snip patch to cat(1)] Hi, If you really plan to commit this, please consider Julian's original approach of comparing the gettimeofday() results with previous runs and re-using previous output of strftime(), since the latter is probably a quite 'expensive' operation. -- Giorgos --BXVAT5kNtrzKuDFl Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFE/Sn71g+UGjGGA7YRAkTIAJ9unGIHrNZmftckS/ApTFUyM8ShFACdEDUT UU1hDUyE1MB1BXJUa6oxdP0= =1g4y -----END PGP SIGNATURE----- --BXVAT5kNtrzKuDFl--