Date: Tue, 16 Sep 2003 09:34:18 +1000 From: Tim Robbins <tjr@FreeBSD.ORG> To: Kris Kennaway <kris@obsecurity.org> Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: A new sort utility Message-ID: <20030915233418.GA13536@dilbert.robbins.dropbear.id.au> In-Reply-To: <20030915184307.GA6822@rot13.obsecurity.org> References: <20030915105356.GA11926@dilbert.robbins.dropbear.id.au> <20030915184307.GA6822@rot13.obsecurity.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Sep 15, 2003 at 11:43:07AM -0700, Kris Kennaway wrote: > On Mon, Sep 15, 2003 at 08:53:56PM +1000, Tim Robbins wrote: > > > It's not quite as fast as the GNU or 4.4BSD sort implementations > > Why is this? Because it spends too much time comparing lines. In particular, it seems to be spending a lot of time extracting the specified fields from lines, even when no -k options are specified. It's also more general than the 4.4BSD implementation, which can't sort according to the locale's LC_COLLATE settings, and has a lot of difficulty sorting numbers (with the -n option) properly. If speed was everything, we'd already be using that one -- it's significantly faster than GNU. > I often need to sort huge files, so I'd be reluctant to use an > implementation with a significant performance penalty. It would be great if you could compare my sort against GNU on some real world data and let me know how it goes. Tim
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030915233418.GA13536>
