🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #77722

[slrn] new patch dramatically improves thread reconstruction speed on --spool

#77722
From: jurriaan kalkman
Date: Mon, 30 Apr 2001 08:47
29 lines
2155 bytes
When using slrn --spool, my new patch dramatically improves the thread
reconstruction (esc-1 esc-p) speed. For my test-thread it went from 4
minutes to a little under 7 seconds.

The regular slrn-way it to use the NNTP-protocol and give a XPAT
command, which in spool.c is translated into 'read all headers, find the
References: part, test if it's the one we want'.

The much quicker way I use in my patch:

Read all lines from the overview file.
If the pattern isn't in the line, next line.
If the pattern is one of the references in the References: part, this is
a good message. Keep it, and go to the next line.

The patch is at http://www.xs4all.nl/~thunder7 and is against
slrn-0.9.7.0a. Look for SLRN_HAS_QUICK_RECONSTRUCT in slrnfeat.h

I have tested this on 8 different, large, threads, and I'm reasonably
sure it works the same as the older method. But more testing is always
welcome.

Good luck,
Jurriaan
-- 
Testing? What's that? If it compiles, it is good, if it boots up it is perfect.
	Linus Torvalds
GNU/Linux 2.4.4 SMP/ReiserFS 2x1743 bogomips load av: 0.19 0.11 0.04
Technical Details
Message-ID: <slrn9eq9km.25o._hate_spam_thunder7@middle.of.nowhere>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!193.190.198.17!newsfeeds.belnet.be!news.belnet.be!transit.news.xs4all.nl!no_spam_here

Show Full Headers
Complete Article Headers
Message-ID: <slrn9eq9km.25o._hate_spam_thunder7@middle.of.nowhere>
Subject: [slrn] new patch dramatically improves thread reconstruction speed on --spool
Date: Mon, 30 Apr 2001 08:47:04 +0000
From: _hate_spam_thunder7@xs4all.nl (jurriaan kalkman)
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!193.190.198.17!newsfeeds.belnet.be!news.belnet.be!transit.news.xs4all.nl!no_spam_here
Newsgroups: news.software.readers
Organization: XS4ALL Internet BV
Lines: 28
NNTP-Posting-Host: rivierenland.xs4all.nl
X-Trace: news1.xs4all.nl 988620424 17267 194.109.14.47 (30 Apr 2001 08:47:04 GMT)
X-Complaints-To: abuse@xs4all.nl
NNTP-Posting-Date: 30 Apr 2001 08:47:04 GMT
X-Face: b$-F+98,@$_I=*ODq'<K2(OA)qC&,(GP=z2^`4dwQwy&e;!|R?>")k9FH3?YC+%*kF\=<Rx"Hy2_eyMtnFSiO8
User-Agent: slrn/0.9.7.0-jwk (GNU/Linux)