Date: Fri, 30 Jul 1999 20:45:20 +0900 From: "Daniel C. Sobral" <dcs@newsguy.com> To: John-Mark Gurney <gurney_j@resnet.uoregon.edu> Cc: James Howard <howardjp@wam.umd.edu>, Tim Vanderhoek <vanderh@ecf.utoronto.ca>, freebsd-hackers@FreeBSD.ORG Subject: Re: replacing grep(1) Message-ID: <37A19050.D3ED6972@newsguy.com> References: <19990729182229.E24296@mad> <Pine.GSO.4.10.9907291856100.11776-100000@rac9.wam.umd.edu> <19990729164533.36798@hydrogen.fircrest.net>
next in thread | previous in thread | raw e-mail | index | archive | help
John-Mark Gurney wrote: > > ok, I just made a patch to eliminate the copy that was happening in > procfile, and it sped up a grep of a 5meg termcap from about 2.9sec > down to .6 seconds... this includes time spent profiling the program.. > GNU grep w/o profiling only takes .15sec so we ARE getting closer to > GNU grep... Rather impressive. But... did you run these tests more than once, to account for vm caching? > 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.. Just for the record... :-) This eliminates one of the "added complexities" I pointed out. -- Daniel C. Sobral (8-DCS) dcs@newsguy.com dcs@freebsd.org "Is it true that you're a millionaire's son who never worked a day in your life?" "Yeah, I guess so." "Lemme tell you, son, you ain't missed a thing." 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?37A19050.D3ED6972>