Re: Improving trn: LISTGROUP with no arguments vs. ...?

Liste des GroupesRevenir à ns nntp 
Sujet : Re: Improving trn: LISTGROUP with no arguments vs. ...?
De : iulius (at) *nospam* nom-de-mon-site.com.invalid (Julien ÉLIE)
Groupes : news.software.nntp
Date : 05. Nov 2024, 21:10:55
Autres entêtes
Organisation : Groupes francophones par TrigoFACILE
Message-ID : <vgdu4f$16ru$1@news.trigofacile.com>
References : 1
User-Agent : Mozilla Thunderbird
Hi Richard,

It's not the algorithm that is slow per se, but asking inn for all the
article numbers in a group with thousands of articles takes quite a
long time.
How much time does it take?
Just tried on my own INN server:
LIST COUNTS fr.soc.politique
215 Newsgroups in form "group high low count status"
fr.soc.politique 2904875 2698 1365681 y
.
LISTGROUP returns the 1,365,681 articles in 2,6 seconds.  Not that slow...

I suspect that inn doesn't have any sort of in-memory
cache for this information and instead is directory scanning the spool
directory and reporting back the article numbers one by one.
INN has the available articles and its overview database, and depending on the configuration of the server (nnrpdcheckart and groupexactcount parameters), either directly returns the information from overview or checks the article is still here.
The 2,6 seconds above include the check.
--
Julien ÉLIE
« Ex nihilo nihil. » (Perse)

Date Sujet#  Auteur
5 Nov 24 * Improving trn: LISTGROUP with no arguments vs. ...?6Richard
5 Nov 24 +- Re: Improving trn: LISTGROUP with no arguments vs. ...?1Urs Janßen
5 Nov 24 `* Re: Improving trn: LISTGROUP with no arguments vs. ...?4Julien ÉLIE
6 Nov 24  `* Re: Improving trn: LISTGROUP with no arguments vs. ...?3Richard
6 Nov 24   `* Re: Improving trn: LISTGROUP with no arguments vs. ...?2Julien ÉLIE
18 Nov 24    `- Re: Improving trn: LISTGROUP with no arguments vs. ...?1Richard

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal