From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/74046 Path: news.gmane.org!not-for-mail From: Francis Moreau Newsgroups: gmane.emacs.gnus.general Subject: Re: Improving Gnus speed Date: Fri, 12 Nov 2010 21:07:54 +0100 Message-ID: References: <87zktemkwl.fsf@uwo.ca> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1289592497 21220 80.91.229.12 (12 Nov 2010 20:08:17 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 12 Nov 2010 20:08:17 +0000 (UTC) Cc: ding@gnus.org To: Dan Christensen Original-X-From: ding-owner+M22414=ding+2Daccount=gmane.org@lists.math.uh.edu Fri Nov 12 21:08:12 2010 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PGzut-0003dQ-Lg for ding-account@gmane.org; Fri, 12 Nov 2010 21:08:11 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1PGzuq-0004lp-At for ding-account@gmane.org; Fri, 12 Nov 2010 14:08:08 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1PGzuo-0004li-TN for ding@lists.math.uh.edu; Fri, 12 Nov 2010 14:08:06 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1PGzuj-0003zs-VW for ding@lists.math.uh.edu; Fri, 12 Nov 2010 14:08:06 -0600 Original-Received: from mail-ey0-f172.google.com ([209.85.215.172]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1PGzuj-0000aZ-00 for ; Fri, 12 Nov 2010 21:08:01 +0100 Original-Received: by eyd10 with SMTP id 10so2111349eyd.17 for ; Fri, 12 Nov 2010 12:08:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:references :date:in-reply-to:message-id:user-agent:mime-version:content-type; bh=juTMzpW1Ram+cIT8LDiAjiEh/PamVe/3Xi5U1K6bL8U=; b=fd0ioxobH1Tt9Qzx1bB20Z10vHmOfpbQfptXcnhdikjy2khlvrrWgotXgfXYLk9rLS Q4Jyheazu3jSmeLs/wfhd/d42vpcganVu4cuhc2omtDlH39N69JCPMBQK/iGZ2aIPRBl /GcVj3UANLrvZzppwAr2ceKX1dkGvahlxcdGI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; b=trGAdU+2Wy0eSP12jhOQnbHAtvht624TB6AEovmIAT0zhOaR/Jy/Ituz2ZVMNmRTgQ JpsrpvM8lLFztcbjvFSQg22toUOTnM095bJt6nk/qmg55YQrAGwu2zKZsdDnQUKx5Qdc NEc3wd+Zzc9UHTkATj83xNszuz4PD8HmwOlvQ= Original-Received: by 10.216.173.194 with SMTP id v44mr754747wel.100.1289592479649; Fri, 12 Nov 2010 12:07:59 -0800 (PST) Original-Received: from localhost (au213-1-82-235-205-153.fbx.proxad.net [82.235.205.153]) by mx.google.com with ESMTPS id x6sm2374440weq.37.2010.11.12.12.07.57 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 12 Nov 2010 12:07:58 -0800 (PST) In-Reply-To: <87zktemkwl.fsf@uwo.ca> (Dan Christensen's message of "Fri, 12 Nov 2010 13:55:38 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-Spam-Score: -2.0 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:74046 Archived-At: Dan Christensen writes: > Francis Moreau writes: > >> and while in the 22 secs processing, hitting C-g gives: >> >> parse-time-tokenize >> parse-time-string >> mail-header-parse-date >> gnus-thread-latest-date >> gnus-thread-sort-by-most-recent-date >> gnus-sort-threads-recursive >> . >> 33 calls to gnus-sort-threads-recursive >> . >> gnus-sort-threads > > ... > >> gnus-sort-threads-recursive 641 65.774695999 0.1026126302 >> gnus-thread-sort-by-most-recent-date 4348 31.652889000 0.0072798732 >> gnus-thread-latest-date 8696 31.436723000 0.0036150785 > > ... > >> Yes I have this in my .gnus: >> >> ("^nntp\\|gmane\\." >> (display . all) >> (gnus-use-scoring t) >> (gnus-thread-sort-functions '((not gnus-thread-sort-by-number) >> gnus-thread-sort-by-total-score))))) > > Why are there calls to gnus-thread-sort-by-most-recent-date above, even > though that's not listed as a sort function? You're right the actual sort functions used were: (setq gnus-thread-sort-functions '(gnus-thread-sort-by-most-recent-date gnus-thread-sort-by-total-score)) > In my experience, it is very slow, so eliminating it should help. I > did some work to speed it up, but if anyone else can improve it > further, that would be good. Well, that's a crude workaround since this what I'd like to use. But why are there so many calls to gnus-thread-total-score and gnus-thread-sort-by-most-recent-date knowing that my group contains only 1298 articles ? Do you have any hint to improve it further ? Removing gnus-thread-sort-by-most-recent-date considerably accelerate the thread sorting time. Also do you know why the fetching process is so long (~ 7secs) specially since the group contains only cached articles ? Thanks -- Francis