Article View: news.software.readers
Article #75154Re: Gnus speed
From: Alan Mackenzie
Date: Mon, 02 Apr 2001 21:27
Date: Mon, 02 Apr 2001 21:27
90 lines
5347 bytes
5347 bytes
Russ Allbery <rra@stanford.edu> wrote on 01 Apr 2001 15:22:24 -0700: > Alan Mackenzie writes: >> Per Abrahamsen <abraham@dina.kvl.dk> wrote on 31 Mar 2001 14:58:14 +0200: >>> .... 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, > XEmacs does, if that's important for you and you want to try it. Sometime, maybe. I'd have to check out the differences between GE and XE, and that's kind of drifting off topic in news.software.readers. :-) >>> This is quite convenient in that you can do all things usually done >>> on a text buffer and that navigating in the summary buffer is >>> extremely fast, but it does mean that the time to enter the group get >>> slow, especially compared to newsreaders that generate the summary >>> lazily. >> "lazily"? You mean, surely, "more optimally" or possibly "differently", >> don't you? > I'm pretty sure he means lazily in the sense of lazy evaluation. It's a > programming term, meaning roughly that you put off doing work as long as > possible because it may not actually be needed. Shame on me! I'm a C programmer and I use things like "if (a && b())" all the time at work. You might be surprised at just how many professional C programmers think that the order of evaluation of the operands around && or || is undefined. > Gnus generates the entire summary buffer up-front, all 10,000 lines of it > for 10,000 unread articles, even if you only look at the first 100 lines > and then leave the group again. That's the non-lazy approach. And in most situations, probably the best. But not for me. :-( >>> 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. > Surely? Why are you sure of that? I meant "surely", as in "surely you're kidding", meaning "I'd find it difficult to believe the contrary, but feel free to persuade me!". > It's been proven time and time again that choice of algorithm is an order > of magnitude more important than implementation language for almost all > problems in computer science. It's true that elisp isn't the zippiest > language in the world, but I think it's far from obvious that bottlenecks > in Gnus are fundamental attributes of the implementation language. Yes, but is there really going to be that much difference in the quality of threading algorithms used in gnus and other readers? Even though the fundamental data type in lisp seems to match the structure of a thread peculiarly well, there's still going to be a factor of 10 to 100 overhead in the interpretation. I measure it at around 40. > In this case in particular, Gnus is actually doing more work than many > other news readers do in the same situation, which makes it unsurprising > that it's slower. The question is whether there's a good way to let it do > less work without impacting the usability once one has entered the group. > I think what you're seeing is that Gnus is not well-optimized for that > particular operation (entering a group with a huge number of unread > articles). I don't find that particularly surprising; at least with the > way that I read news, that's an extremely infrequent operation and for me > personally isn't worth optimizing. I suspect that you're in the vast majority here. A few years back, when processors and RAM were much slower than today it would've been more important. But I must confess that the originator of the subthread, Galen Boyer, got up my nose a little, with his what seemed like "hey, my newsreader, gnus, is much better than your newsreader". I felt I had to point out one situation where this isn't true. Incidentally, I love emacs. I wouldn't use any other editor for programming unless forced, and maybe not even then. > Russ Allbery -- Alan Mackenzie (Munich, Germany) Email: aacm@muuc.dee; to decode, wherever there is a repeated letter (like "aa"), remove one of them (leaving, say, "a").
Technical Details
Message-ID:
<ksqaa9.95.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-03!supernews.com!logbridge.uoregon.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!news.space.net!news.muc.de!not-for-mailReferences:
<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> <yl1yrci7kv.fsf@windlord.stanford.edu>Show Full Headers
Complete Article Headers
Message-ID: <ksqaa9.95.ln@acm.acm>
Subject: Re: Gnus speed
Date: Mon, 2 Apr 2001 21:27:48 +0000
From: Alan Mackenzie<none@example.invalid>
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> <yl1yrci7kv.fsf@windlord.stanford.edu>
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-03!supernews.com!logbridge.uoregon.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!news.space.net!news.muc.de!not-for-mail
Newsgroups: news.software.readers,gnu.emacs.gnus
Organization: muc.de e.V. -- private internet access
Lines: 89
NNTP-Posting-Host: acm.muc.de
X-Trace: marvin.muc.de 986247101 90589 193.149.49.134 (2 Apr 2001 21:31:41 GMT)
X-Complaints-To: news-admin@muc.de
NNTP-Posting-Date: 2 Apr 2001 21:31:41 GMT
User-Agent: tin/1.4.4-20000803 ("Vet for the Insane") (UNIX) (Linux/2.0.35 (i686))