Date: Tue, 27 Jul 1999 09:29:41 -0400 From: Tim Vanderhoek <vanderh@ecf.utoronto.ca> To: Dag-Erling Smorgrav <des@yes.no> Cc: hackers@freebsd.org Subject: Re: replacing grep(1) Message-ID: <19990727092941.A34599@mad> In-Reply-To: <19990727082344.B33399@mad>; from Tim Vanderhoek on Tue, Jul 27, 1999 at 08:23:44AM -0400 References: <xzpd7xeb9xc.fsf@des.follo.net> <19990727082344.B33399@mad>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Jul 27, 1999 at 08:23:44AM -0400, Tim Vanderhoek wrote: > > How's it compare in speed? [I'd test it myself, but see my private > email...] Okay, following-up on myself, and indirectly Sheldon, It does seem a little too slow. I'm not sure that this is because it doesn't use mmap. Supposedly the merged buffer/vm means mmap doesn't make as large a difference as it used to. On a file with 100000+ lines, the speed difference is rather restrictive. Looking over the gprof output, I think its authors (or some other intrepid hacker) will find ways to speed it up. Only about 10% of the time is spend in procline(). There seems to be a lot of unnecessary strncpy() that could be _easily_ avoided if free() on util.c:130 was avoided, but I'll let the authors speak first. :-) -- This is my .signature which gets appended to the end of my messages. 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?19990727092941.A34599>