🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #78877

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

#78877
From: J.B. Nicholson-Owens
Date: Fri, 18 May 2001 18:20
25 lines
2602 bytes
Thomas Schultz wrote:
> You would probably need to make sure that the macro that expunges
> unwanted messages is used before StickyTags->article_mode_hook ().

Yes, and I'll keep this in mind, but I don't prefer to do things this way
because there's no mechanism to insure that it would be installed thusly.  I
think I'm already leaning too hard in the direction of favoring programmers
when it comes to installing macros.

> If I understand you correctly, this could be implemented in slang by
> uncollapsing the thread, counting the number of read headers within
> the thread_size() next headers and collapsing the thread again (if
> necessary), but you want an equivalent function in C because it would
> be faster?

Yes, I'll explain.  I've been doing the work in the macro by moving the
cursor within the thread and doing the appropriate thing if I see an unread
article in the thread.  I figured since slrn apparently already did some
counting along these lines (to decide what character to display next to a
collapsed thread), it would be faster to reuse that then recount for myself.
After all, I don't really need to know exactly how many articles are read
and unread, I just need to know if there's at least 1 unread article in the
thread (which is precisely the information conveyed by the choice of
character displayed for the read status of a collapsed thread).
Technical Details
Message-ID: <slrn9gapst.e8.jbn@forestfield.org>
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!archiver1.sj.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!newsfeed00.sul.t-online.de!t-online.de!nautilus.eusc.inter.net!fu-berlin.de!uni-berlin.de!forestfield.ORG!not-for-mail
References: <slrn9eq9km.25o._hate_spam_thunder7@middle.of.nowhere> <9con8e$bti$3@news.tht.net> <slrn9fu64b.84.jbn@forestfield.org> <slrn9g0gr1.5to.tststs@starflower.tststs.ddns.org> <slrn9g42f1.18r.jbn@forestfield.org> <slrn9g7mvf.1cq.tststs@starflower.tststs.ddns.org>

Show Full Headers
Complete Article Headers
Message-ID: <slrn9gapst.e8.jbn@forestfield.org>
Subject: Re: [slrn] new patch dramatically improves thread reconstruction speed on --spool
Date: Fri, 18 May 2001 18:20:40 +0000
From: jbn@forestfield.org (J.B. Nicholson-Owens)
References: <slrn9eq9km.25o._hate_spam_thunder7@middle.of.nowhere> <9con8e$bti$3@news.tht.net> <slrn9fu64b.84.jbn@forestfield.org> <slrn9g0gr1.5to.tststs@starflower.tststs.ddns.org> <slrn9g42f1.18r.jbn@forestfield.org> <slrn9g7mvf.1cq.tststs@starflower.tststs.ddns.org>
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!archiver1.sj.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!newsfeed00.sul.t-online.de!t-online.de!nautilus.eusc.inter.net!fu-berlin.de!uni-berlin.de!forestfield.ORG!not-for-mail
Newsgroups: news.software.readers
Organization: Forest Field OmniMedia
Lines: 24
NNTP-Posting-Host: forestfield.org (208.216.67.173)
X-Trace: fu-berlin.de 990210040 916950 208.216.67.173 (16 [35848])
X-Orig-Path: jbn
User-Agent: slrn/0.9.7.0 (Unix)