From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/44625 Path: main.gmane.org!not-for-mail From: Wes Hardaker Newsgroups: gmane.emacs.gnus.general Subject: thoughts on speeding up gnus: caching the summary buffer Date: Fri, 03 May 2002 06:59:44 -0700 Organization: Network Associates - NAI Labs Sender: owner-ding@hpc.uh.edu Message-ID: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1020434452 28744 127.0.0.1 (3 May 2002 14:00:52 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 3 May 2002 14:00:52 +0000 (UTC) Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 173dcB-0007TV-00 for ; Fri, 03 May 2002 16:00:51 +0200 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 173dbT-0001ps-00; Fri, 03 May 2002 09:00:07 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Fri, 03 May 2002 09:00:22 -0500 (CDT) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id JAA20218 for ; Fri, 3 May 2002 09:00:10 -0500 (CDT) Original-Received: (qmail 21138 invoked by alias); 3 May 2002 13:59:50 -0000 Original-Received: (qmail 21133 invoked from network); 3 May 2002 13:59:50 -0000 Original-Received: from adsl-66-127-127-227.dsl.scrm01.pacbell.net (HELO wanderer.hardakers.net) (@66.127.127.227) by gnus.org with SMTP; 3 May 2002 13:59:50 -0000 Original-Received: (from hardaker@localhost) by wanderer.hardakers.net (8.11.6/8.11.6) id g43Dxif02727; Fri, 3 May 2002 06:59:44 -0700 Original-To: ding@gnus.org X-Face: #qW^}a%m*T^{A:Cp}$R\"38+d}41-Z}uU8,r%F#c#s:~Nzp0G9](s?,K49KJ]s"*7gvRgA SrAvQc4@/}L7Qc=w{)]ACO\R{LF@S{pXfojjjGg6c;q6{~C}CxC^^&~(F]`1W)%9j/iS/ IM",B1M.?{w8ckLTYD'`|kTr\i\cgY)P4 Original-Lines: 29 User-Agent: Gnus/5.090006 (Oort Gnus v0.06) XEmacs/21.5 (bamboo, i686-pc-linux) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:44625 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:44625 So, I have another thought for how to speed up gnus. Significantly. But it's probably hard. We all know that much of the time, we simply stare at that little line saying "Generating summary buffer" and sigh wishing we had a faster processor. But shouldn't it be theoretically possible to save the contents of the summary buffer from the previous entry into the group until next time and merely add to it? This obviously couldn't be done trivially. It's likely the cache would have to contain a point reference to every previously specified article in order to account for thread insertions, etc. New dummy threads would likely be a killer. Worst case, you could save the thread tree and possible the insertion/marking commands into a generated .el file or something, and then operate on that list to insert new items. Occasionally, at least, you'd need to clear the cache as the expired->deleted articles would no longer be available, for example, and thus the summary buffer shouldn't technically contain them. Moved/copied articles would have to be left marked as 'no-longer-existent' (or whatever it's called that turns the line black), but I'd live with those lines still being present to get a speed improvement. -- "The trouble with having an open mind, of course, is that people will insist on coming along and trying to put things in it." -- Terry Pratchett