🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #64531

Re: Newsreader programming - sorting one million lines ?

#64531
From: Juergen Helbing
Date: Wed, 26 Mar 2003 06:44
33 lines
2032 bytes
Klaas <spamhole@klaas.ca> wrote:

>It'd be interesting to see if the improved locality of mergesort helps 
>considering its memory requirements (roughly double quicksort), which 
>will also cause a lot of swapping.  I'd keep quicksort around for use 
>with the smaller groups.

I am using always heapsort - because it offers a stable sorting
time even for presorted or reversly persorted lists:

A newsreader (my newsreader) is offering all kind of sorting:
Forward and backwards.... And I want to have a constant sorting
time. I believe that users dont like to wait very long....

>I definately agree that you should do the multipart combining _first_.  
>In large binary groups, that should reduce your problem by 1/20 or so, 
>and the articles should already be roughly in the order necessary to 
>create the multipart index.

This seems to be a good idea.
But unfortunately doing the multipart combining requires sorting by
subject. So sorting by subject cannot be done after multipart joining.

And sorting by author with previous multipart elimination requires 
to sort first by subject, then eliminating multiparts and then again
sorting by author.....

Or am I wrong ?

-- 
Juergen

Technical Details
Message-ID: <07447.q33209@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-04!sn-xit-06!sn-xit-09!supernews.com!feed.uncensored-news.com!news.alt.net!usenet
References: <4540d.o33203@archiver.winews.net> <b5ob7g$akq$1@puck.litech.org> <Xns93492FF0660DBnothing@209.98.50.131>

Show Full Headers
Complete Article Headers
Message-ID: <07447.q33209@archiver.winews.net>
Subject: Re: Newsreader programming - sorting one million lines ?
Date: Wed, 26 Mar 2003 06:44:07 +0000
From: archiver@i3w.com (Juergen Helbing)
References: <4540d.o33203@archiver.winews.net> <b5ob7g$akq$1@puck.litech.org> <Xns93492FF0660DBnothing@209.98.50.131>
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-04!sn-xit-06!sn-xit-09!supernews.com!feed.uncensored-news.com!news.alt.net!usenet
Newsgroups: news.software.nntp
Organization: Altopia Corp. - Usenet Access - http://www.altopia.com
Lines: 32
X-Newsreader: MyNews