🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #64544

Re: Newsreader programming - sorting one million lines ?

#64544
From: Jeffrey M. Vinocur
Date: Thu, 27 Mar 2003 01:03
24 lines
2061 bytes
In article <b5tb09.1hk.1@Heiko.Studt.dialin.t-online.de>,
Heiko Studt  <Heiko.Studt@gmx.de> wrote:
>
>I thought a bit more about the sorting-problem today, but I don't think my
>thoughts would be useful. It's too easy to be not found by another one and
>deleted after a 1-year-try to sort a small list. ;-)
>Perhaps I should talk about it in an algorithmic-group first, but yet I don't
>know where and if I should do so at all. If you say 'NOOO' say so and for me
>it would be EOT.

I think you guys are making mountains out of molehills here.  I
just sorted 500,000 lines of news logfiles (about 150 characters
per line), and it takes a bit under 2 sec on my system.  This is
a 850 MHz PIII with 256 MB of memory, using sort(1) from GNU
textutils, version 2.0.14.

I really don't think you need to starting thinking up new
algorithms from scratch here.


-- 
Jeffrey M. Vinocur
jeff@litech.org
Technical Details
Message-ID: <b5til6$db5$1@puck.litech.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.litech.org!not-for-mail
References: <4540d.o33203@archiver.winews.net> <b5s66v.1t4.1@Heiko.Studt.dialin.t-online.de> <260320031516157694%planb@newsreaders.com> <b5tb09.1hk.1@Heiko.Studt.dialin.t-online.de>

Show Full Headers
Complete Article Headers
Message-ID: <b5til6$db5$1@puck.litech.org>
Subject: Re: Newsreader programming - sorting one million lines ?
Date: Thu, 27 Mar 2003 01:03:34 +0000
From: jeff@litech.org (Jeffrey M. Vinocur)
References: <4540d.o33203@archiver.winews.net> <b5s66v.1t4.1@Heiko.Studt.dialin.t-online.de> <260320031516157694%planb@newsreaders.com> <b5tb09.1hk.1@Heiko.Studt.dialin.t-online.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.litech.org!not-for-mail
Newsgroups: news.software.nntp
Organization: Litech Systems Design
Lines: 23
Sender: jeff@litech.org
NNTP-Posting-Host: 66.218.0.75
X-Trace: puck.litech.org 1048727014 13669 66.218.0.75 (27 Mar 2003 01:03:34 GMT)
X-Complaints-To: usenet@litech.org
NNTP-Posting-Date: Thu, 27 Mar 2003 01:03:34 +0000 (UTC)
X-Newsreader: trn 4.0-test76 (Apr 2, 2001)
Originator: jeff@litech.org (Jeffrey M. Vinocur)