Tim Vanderhoek scribbled this message on Jul 29:
> On Thu, Jul 29, 1999 at 07:05:57PM -0400, James Howard wrote:
> > 
> > <warning type="Anything said here wrong is my fault, not DES's">
> > 
> > DES tells me he has a new version (0.10) which mmap()s.  It supposedly
> > cuts the run time down significantly, I do not have the numbers in front
> > of me.
> 
> I do.  Still far too slow.  I'll work on this tomorrow, since that
> seems the only way to convince people that mmap is not such a big
> win.  :-(

I just managed to get a five time speed increase by removing an
uncessary copy...   and now, grep spends 50% of it's time in regexc,
37.2% of it's time in mmfgetln, and this is because of the scanning for a
new line character...

> Hmm...  Maybe I'll even turn-out to be wrong.  ;-)  I really believe
> mmap falls into the category of "might be nice, but not necessary and
> does complicate things..."

I think it is a big win...  it shaved off around a half second from
3 seconds down to 2 and a half seconds...

-- 
  John-Mark Gurney                              Voice: +1 541 684 8449
  Cu Networking                                   P.O. Box 5693, 97405

  "The soul contains in itself the event that shall presently befall it.
  The event is only the actualizing of its thought." -- Ralph Waldo Emerson


To Unsubscribe: send mail to majord...@freebsd.org
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to