Date: 30 Jul 1999 16:59:53 +0200 From: Dag-Erling Smorgrav <des@flood.ping.uio.no> To: "Daniel C. Sobral" <dcs@newsguy.com> Cc: Dag-Erling Smorgrav <des@flood.ping.uio.no>, freebsd-hackers@FreeBSD.ORG Subject: Re: replacing grep(1) Message-ID: <xzpn1we18uu.fsf@flood.ping.uio.no> In-Reply-To: "Daniel C. Sobral"'s message of "Fri, 30 Jul 1999 23:56:26 %2B0900" References: <19990729182229.E24296@mad> <Pine.GSO.4.10.9907291856100.11776-100000@rac9.wam.umd.edu> <19990729164533.36798@hydrogen.fircrest.net> <xzpyafy1d53.fsf@flood.ping.uio.no> <xzpwvvi1czq.fsf@flood.ping.uio.no> <37A1BD1A.59DF842E@newsguy.com>
next in thread | previous in thread | raw e-mail | index | archive | help
"Daniel C. Sobral" <dcs@newsguy.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?xzpn1we18uu.fsf>