From owner-freebsd-current Thu Mar 2 19:28:59 2000 Delivered-To: freebsd-current@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id 1828A37B56A for ; Thu, 2 Mar 2000 19:28:57 -0800 (PST) (envelope-from bright@fw.wintelcom.net) Received: (from bright@localhost) by fw.wintelcom.net (8.9.3/8.9.3) id TAA22478; Thu, 2 Mar 2000 19:59:37 -0800 (PST) Date: Thu, 2 Mar 2000 19:59:37 -0800 From: Alfred Perlstein To: Dan Papasian Cc: current@FreeBSD.ORG Subject: Re: which(1), rewritten in C? Message-ID: <20000302195937.F14279@fw.wintelcom.net> References: <20000302204719.A8563@moe.c705742-a.htfdw1.ct.home.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <20000302204719.A8563@moe.c705742-a.htfdw1.ct.home.com>; from bugg@bugg.strangled.net on Thu, Mar 02, 2000 at 08:47:19PM -0500 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG * Dan Papasian [000302 18:17] wrote: > While this may sound crazy, I was tired of 'which' taking a long > time to complete on my 486 dx4/100 when it was under extereme > pressure, so I rewrote it in C :) > ...snip > NOTE: > This version of which has exactly the same behavior. > Also, the above test was not performed when the box was > under load.. and on slower machines/under load, the > differences are of course, more noticable. > You may all go ahead and call me crazy now. > > ...I've got the fear of posting the source, but what the heck, > getting nitpicked is good education :) > > http://bugg.strangled.net/which.c > > Any flames^Wthoughts? It doesn't seem to handle multiple arguments. File a PR and fix the issues and I'll look at getting it into post 4.0. -Alfred To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message