🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #64037

Re: sort headers by subject algorithm

#64037
From: Heiko Studt
Date: Thu, 13 Feb 2003 23:34
56 lines
3261 bytes
Colin Wilson did nothing on 13.02.2003 11:27:02:

> Last night I downloaded all 27000 messages from uk.rec.motorcycles into 
> XanaNews.  I'd modified it so that it beeped at the start and end of 
> the threading code.  It takes less than a second to thread the 27000 
> articles on my 1Ghz PIII.  

I have written threading-code too in a searchtool for Hamster (Delphi).

Extract/Show(list) the needed Headers out of database 
                          (something like MBox-format)
  ~8-15 Seconds

Threading without Show
  <1 Second (Beeps)

Threading +Show complete(see bottom)
  ~20 Seconds


So it took too long to load and show the threads, but generating the threads
don't need that much time too.

BTW: Because of you I enhanced the code so that for showing the treeview, 
     it doesn't need to include the complete tree anymore. So it needs now 
     around 13 Seconds together with loading. Thank you! :)

> Of course there are other overheads when 
> switching groups - it has to unload the message headers for the 
> previously selected group; load the message headers for the newly 
> selected one, then finally thread them.  This takes XanaNews about 3 
> seconds for a 27000 thread group.  BTW, it took 17 minutes to download 
> the 27000 full messages on my ADSL connection - about 1500 per minute.

ACK, it should not take *too* much time.

> But you're right.  Holding headers for a group in memory and threading 
> them on-the-fly will cause performance problems if there are too many 
> messages, and if you want to hold big archives of newsgroup messages 

NAK.
It depends on what you hold in memory.
I only have Subject, From, Date, Size and References/MID saved. So it took
only some MBs.
With 22.800 Messages I need 19 MB, so around 1 MB for 1000 Messages.
But without any message it needs around 5 MBs alone, so it's even less.
Deleting References could perhaps help. 



MFG

-- 
Heiko Studt

Technical Details
Message-ID: <b2hdjd.11o.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!newsfeed.icl.net!newsfeed.fjserv.net!feed.news.nacamar.de!newsfeed01.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail
References: <3e499c1d.56495214@news.claranews.net> <1045044386.38289.0@iris.uk.clara.net> <g3fk4vsvs0j5mi5grphfmo352f93aakr1c@4ax.com> <1045132022.9885.0@despina.uk.clara.net>

Show Full Headers
Complete Article Headers
Message-ID: <b2hdjd.11o.1@Heiko.Studt.dialin.t-online.de>
Subject: Re: sort headers by subject algorithm
Date: Fri, 14 Feb 2003 00:34:52 +0100
From: Heiko Studt <UsenetBecky@goldpool.org>
References: <3e499c1d.56495214@news.claranews.net> <1045044386.38289.0@iris.uk.clara.net> <g3fk4vsvs0j5mi5grphfmo352f93aakr1c@4ax.com> <1045132022.9885.0@despina.uk.clara.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!newsfeed.icl.net!newsfeed.fjserv.net!feed.news.nacamar.de!newsfeed01.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail
Newsgroups: news.software.nntp
Organization: HSR
Lines: 55
Reply-To: Heiko.Studt@gmx.de
Mime-Version: 1.0
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: 7bit
X-Trace: news.t-online.com 1045203260 04 1133 w8zgEtpSwYhxR 030214 06:14:20
X-Complaints-To: abuse@t-online.com
X-Sender: 0597171868-0001@t-dialin.net
X-Mailer: Becky! ver. 2.05.08 with BkNews Plug-In ver. 2.0
User-Agent: Hamster-Pg/1.8