Article View: news.software.nntp
Article #64565Re: Newsreader programming - sorting one million lines ?
From: Juergen Helbing
Date: Fri, 28 Mar 2003 06:27
Date: Fri, 28 Mar 2003 06:27
25 lines
1636 bytes
1636 bytes
jeff@litech.org (Jeffrey M. Vinocur) wrote: >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. WOW, this is really fast. >I really don't think you need to starting thinking up new >algorithms from scratch here. With approx 75 megs of filesize the sort(1) seems to be really fast. Under 2 secs is already a disk-transfer rate for 38 megs/sec..... My 2 years old IDE disk has just 10 megs/sec in my older private-news-server-PC. Thanks for the link to sort(1). -- Juergen
Technical Details
Message-ID:
<32277.s3320c@archiver.winews.net>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.alt.net!usenetReferences:
<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> <b5til6$db5$1@puck.litech.org>Show Full Headers
Complete Article Headers
Message-ID: <32277.s3320c@archiver.winews.net> Subject: Re: Newsreader programming - sorting one million lines ? Date: Fri, 28 Mar 2003 06:27:32 +0000 From: archiver@i3w.com (Juergen Helbing) 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> <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.alt.net!usenet Newsgroups: news.software.nntp Organization: Altopia Corp. - Usenet Access - http://www.altopia.com Lines: 24 X-Newsreader: MyNews