🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #75047

Re: Gnus speed

#75047
From: Kai Großjohann
Date: Mon, 02 Apr 2001 06:36
95 lines
5339 bytes
On Sun, 1 Apr 2001, Alan Mackenzie wrote:

> Per Abrahamsen <abraham@dina.kvl.dk> wrote on 31 Mar 2001 14:58:14
> +0200:
> 
>> Alan Mackenzie<none@example.invalid> writes:
> 
>>> Last time I tried gnus (und das war wirklich kein Gnus) it took
>>> about 3 minutes to thread my (rather large) groups.
> 
>> Are you sure the time was spend threading?
> 
> No, not really. The time (which is now 8� minutes) is the time it
> takes between selecting a group and being able to read articles in
> it.  Precisely how that time is used isn't of that much interest to
> me as a user. (Though, of course, it would be if I wanted to hack
> the program.)

If you want the hackers to improve the program, it might become of
interest to you, too.  Please try putting the following line in
~/.gnus, then look at the messages that Gnus is printing when Gnus is
entering a group.  For me, that's `fetching headers', `threading', and
`generating summary buffer'.  The `threading' part is not the lion's
share of the whole time.

    (setq gnus-verbose 10)

If it's `generating', then you can do a few things.  For example, you
could add the following to the end (!) of ~/.gnus:

    (gnus-compile)

Also, you might wish to look at your gnus-summary-line-format.
Omitting the date, for example, might speed up Gnus considerably,
since then it doesn't have to parse all the Date headers.

Maybe the time is spent fetching the headers.  You can minimize the
number of headers to fetch, but it will at least fetch headers for all
unread messages, so you can't do too much, there.

>> It is true that Gnus does not handle newsgroups with large numbers
>> (>> 10.000) of unread messages very well, but as far as I can see
>> the problem is the time it spends creating the summary buffer.
>> Gnus create the entire summary buffer (with >> 10.000 lines), ....
> 
> By which you mean, I think, that the summary buffer consists of a
> list of _articles_ - Are you suggesting that it might be a better
> tactic for gnus merely to create a listing of _threads_, or to have
> an option of doing so?

Yes, maybe.  Together with lazy summary buffer generation, it might
speed things up considerably.  Type `T H' (not `t h') while in a
summary buffer to see what it means to create a list of threads.

>> .... including coloring and a lot of other text attributes, when
>> you enter the group.
> 
> That'd be a fine thing!  Gnu emacs doesn't do colours on a text
> console, and I definitely don't need the uglinesses of X-Windows for
> reading news.  That's another reason for me not to use gnus. ;-(

XEmacs does colors on a tty right now, and Emacs 21 will, when it
comes out.

>> Threading also takes time, maybe too long time, but I don't think
>> that is the current bottleneck.
> 
> Surely, the bottleneck is the emacs-lisp interpreter.

I'm not so sure.  There is also quite a bit of overhead involved in
inserting stuff into a buffer.  Consider that Gnus adds text
properties to each and every summary buffer line, so that you can
click on it using the middle mouse button.  Without these text
properties, things might be quite a bit faster.

>> Scoring is extremely fast.
> 
>> Maybe Gnus should try to generate a simpler summary for groups with
>> a large number of displayed messages.  Or create it with collapsed
>> threads.
> 
> Indeed - or allow the user the choice by providing separate commands
> for each. But as a user, I would expect the expansion of a collapsed
> thread to take place "instantaneously", i.e. within 0.05
> seconds. What power of hardware would gnus need to do this on a
> moderately large thread (say, 200 articles)?

I thought instantaneous in this context means 0.4 seconds or so, not
0.05 seconds?  I guess a run-of-the-mill ix86 system will come close
(to the 0.4 seconds figure).

kai
-- 
Be indiscrete.  Do it continuously.
Technical Details
Message-ID: <vafae5ziz9y.fsf@lucy.cs.uni-dortmund.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-gnu.emacs.gnus.mbox.zip!supernews.google.com!sn-xit-02!supernews.com!news.gv.tsc.tdk.com!falcon.america.net!sunqbc.risq.qc.ca!newsfeeds.belnet.be!news.belnet.be!psinet-eu-nl!unlisys!news.snafu.de!Informatik.Uni-Dortmund.DE!news
References: <Xns907199D2355A2RarAvishotmailcom@127.0.0.1> <Xns907211BAF2744wiredearp@194.182.148.146> <uitkutvuv.fsf@yahoo.com> <k3ht99.l5.ln@acm.acm> <rj1yre3xjt.fsf_-_@ssv2.dina.kvl.dk> <ns58a9.e6.ln@acm.acm>

Show Full Headers
Complete Article Headers
Message-ID: <vafae5ziz9y.fsf@lucy.cs.uni-dortmund.de>
Subject: Re: Gnus speed
Date: Mon, 02 Apr 2001 06:36:25 +0000
From: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann)
References: <Xns907199D2355A2RarAvishotmailcom@127.0.0.1> <Xns907211BAF2744wiredearp@194.182.148.146> <uitkutvuv.fsf@yahoo.com> <k3ht99.l5.ln@acm.acm> <rj1yre3xjt.fsf_-_@ssv2.dina.kvl.dk> <ns58a9.e6.ln@acm.acm>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-gnu.emacs.gnus.mbox.zip!supernews.google.com!sn-xit-02!supernews.com!news.gv.tsc.tdk.com!falcon.america.net!sunqbc.risq.qc.ca!newsfeeds.belnet.be!news.belnet.be!psinet-eu-nl!unlisys!news.snafu.de!Informatik.Uni-Dortmund.DE!news
Newsgroups: news.software.readers,gnu.emacs.gnus
Organization: University of Dortmund, Germany
Lines: 94
NNTP-Posting-Host: lucy.cs.uni-dortmund.de
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Face: 6=pZ4hVbjN:C?j1$h/-bi4:F%*~B#Rxb$[0%!{5NK"dE:_QRAM]Dzl=$yMu%Rh4xCSm/#>!
 $n%@SHJ](K<taDos\M;zw#b7gIc01F@'f{.guD~];wV{#\SX0YlGR6fREpYY>FJKL,uF\=G=bRJQC$
 ?+Dlxu*pj.Z,-GK<~y7sd/l*PN\]>}<oCe5vw:p#\Gsv#E(:`3Jl2*()0,/H
Mail-Copies-To: nobody
User-Agent: Gnus/5.090001 (Oort Gnus v0.01) Emacs/21.0.101