Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Oct 1995 12:15:07 -0700
From:      "Justin T. Gibbs" <gibbs@freefall.FreeBSD.org>
To:        hackers@FreeBSD.org
Subject:   Speeding up last.
Message-ID:  <199510161915.MAA18887@aslan.cdrom.com>

next in thread | raw e-mail | index | archive | help
Anyone looking for a good little "efficiency" project?  Wolfram? :)
Last takes a *tremendous* amount of CPU time to do what you would
think is a simple task.  Just try to use last on a busy ftp server
and you will get an idea of the problem.  Just counting the number
of ftp logins in a 15 day old wtmp on wcarchive took 16 hours! (36MB
wtmp file).  David Greenman looked into the problem a bit and thinks
that the strcmp() calls are the culprit... last does ~10 of them per
entry.  Even with 10 strcmps, it shouldn't take this long...

--
Justin T. Gibbs
===========================================
  Software Developer - Walnut Creek CDROM
  FreeBSD: Turning PCs into workstations
===========================================



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199510161915.MAA18887>