Article View: news.software.nntp
Article #64611Re: Newsreader programming - sorting one million lines ?
From: Juergen Helbing
Date: Mon, 31 Mar 2003 09:00
Date: Mon, 31 Mar 2003 09:00
40 lines
2140 bytes
2140 bytes
Heiko Studt <UsenetBecky@goldpool.org> wrote: >> I am using always heapsort - because it offers a stable sorting >> time even for presorted or reversly persorted lists: > >But becuase of presorted lists this is *very* bad! Yes - of course. But currently my lists are not presorted. These are the XOVER cache files as they are - rougly sorted by time. I prefer personally stable sorting algorithms. That is why I'm using heapsort (and B-Trees). >> But unfortunately doing the multipart combining requires sorting by >> subject. So sorting by subject cannot be done after multipart joining. > >> Or am I wrong ? > >"References". I don't fetch binaries, but those should add this header too, >don't they? No they dont (until now. I'm trying to invent this ;-) >But you will *ever* have to save indexes to prevent users to sort >the local database again and again. It seems that you are right: My previous approach to keep the stuff in memory as long as possible was good - and very efficiently when it came to integrity checks, expiry, repair, threading, sorting..... But obviously it would be time to either use blocks (display per week) to have an easy and fast solution - or to maintain a bunch of indexes - with all required work for maintenance, updating, delete and expiry. Thanks for your feedback. It was very instructively. -- Juergen
Technical Details
Message-ID:
<2300b.v33201@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!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news.alt.net!usenetReferences:
<4540d.o33203@archiver.winews.net> <b5s66v.1t4.1@Heiko.Studt.dialin.t-online.de>Show Full Headers
Complete Article Headers
Message-ID: <2300b.v33201@archiver.winews.net> Subject: Re: Newsreader programming - sorting one million lines ? Date: Mon, 31 Mar 2003 09:00:23 +0000 From: archiver@i3w.com (Juergen Helbing) References: <4540d.o33203@archiver.winews.net> <b5s66v.1t4.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!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news.alt.net!usenet Newsgroups: news.software.nntp Organization: Altopia Corp. - Usenet Access - http://www.altopia.com Lines: 39 X-Newsreader: MyNews