From owner-freebsd-hackers Fri Jul 30 8: 1: 8 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 3E64E15180 for ; Fri, 30 Jul 1999 08:01:04 -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 QAA58110; Fri, 30 Jul 1999 16:59:53 +0200 (CEST) (envelope-from des) To: "Daniel C. Sobral" Cc: Dag-Erling Smorgrav , freebsd-hackers@FreeBSD.ORG Subject: Re: replacing grep(1) References: <19990729182229.E24296@mad> <19990729164533.36798@hydrogen.fircrest.net> <37A1BD1A.59DF842E@newsguy.com> From: Dag-Erling Smorgrav Date: 30 Jul 1999 16:59:53 +0200 In-Reply-To: "Daniel C. Sobral"'s message of "Fri, 30 Jul 1999 23:56:26 +0900" Message-ID: Lines: 14 X-Mailer: Gnus v5.5/Emacs 19.34 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG "Daniel C. Sobral" writes: > Dag-Erling Smorgrav wrote: > > 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(). > Could you please test my patch that removes malloc() but bot > memcpy()? Here it is again, though against an old version: Yeah. You can do even better by declaring ln static and never free()ing it. 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