From owner-freebsd-hackers Fri Jul 30 6:31:26 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (Postfix) with ESMTP id A742215181 for ; Fri, 30 Jul 1999 06:31:23 -0700 (PDT) (envelope-from des@flood.ping.uio.no) Received: (from des@localhost) by flood.ping.uio.no (8.9.3/8.9.1) id PAA55933; Fri, 30 Jul 1999 15:30:34 +0200 (CEST) (envelope-from des) To: Dag-Erling Smorgrav Cc: John-Mark Gurney , James Howard , Tim Vanderhoek , "Daniel C. Sobral" , freebsd-hackers@FreeBSD.ORG Subject: Re: replacing grep(1) References: <19990729182229.E24296@mad> <19990729164533.36798@hydrogen.fircrest.net> From: Dag-Erling Smorgrav Date: 30 Jul 1999 15:30:33 +0200 In-Reply-To: Dag-Erling Smorgrav's message of "30 Jul 1999 15:27:20 +0200" Message-ID: Lines: 15 X-Mailer: Gnus v5.5/Emacs 19.34 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Dag-Erling Smorgrav writes: > John-Mark Gurney writes: > > it was VERY simple to do... and attached is the patch... this uses the > > option REG_STARTEND to do what the copy was trying to do... all of the > > code to use REG_STARTEND was already there, it just needed to be enabled.. > Funnily, I experience a near-doubling of running time with similar > patches. To be precise, I experience a 30% decrease in system time and a 100% increase in user time when I use RE_STARTEND and eliminate the malloc() / memcpy() calls in procfile(). DES -- Dag-Erling Smorgrav - des@flood.ping.uio.no To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message