From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/74056 Path: news.gmane.org!not-for-mail From: Francis Moreau Newsgroups: gmane.emacs.gnus.general Subject: Re: Improving Gnus speed Date: Sun, 14 Nov 2010 10:32:24 +0100 Message-ID: References: <87zktemkwl.fsf@uwo.ca> <87vd42mdci.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 1289727299 1635 80.91.229.12 (14 Nov 2010 09:34:59 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 14 Nov 2010 09:34:59 +0000 (UTC) Cc: ding@gnus.org To: Dan Christensen Original-X-From: ding-owner+M22424@lists.math.uh.edu Sun Nov 14 10:34:52 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 1PHYz5-00061a-OF for ding-account@gmane.org; Sun, 14 Nov 2010 10:34:52 +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 1PHYxO-00052U-GE; Sun, 14 Nov 2010 03:33:06 -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 1PHYxL-00052D-1g for ding@lists.math.uh.edu; Sun, 14 Nov 2010 03:33:03 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1PHYxJ-0001oF-7h for ding@lists.math.uh.edu; Sun, 14 Nov 2010 03:33:02 -0600 Original-Received: from mail-wy0-f172.google.com ([74.125.82.172]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1PHYxI-00022g-00 for ; Sun, 14 Nov 2010 10:33:00 +0100 Original-Received: by wyb29 with SMTP id 29so1461669wyb.17 for ; Sun, 14 Nov 2010 01:32:30 -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=GYYAWb9VSTLkMmzH5O0fO6DGNcpziJVeSCaLxPQXqAA=; b=AMUBEGVHp2fguTriRT1S0mR0W/TM9knAykxN83xhGAesg6rLUU7ls+HCy57kvlG4+I CJsetujoBoXF1JOfKL8ZVEe9tdVxfCLH48N5AKBsjHZCMk5lguQjnpzhAED45+7K5hb5 lYrSKIfz2uWFqxmK2tvqDJp2MQ/0ErmIHddEU= 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=nUDNgTdcB2j/TkM5NfuTqG2ELuCYowxMY1+LrliaDlKZbPyCfL49NNG0g4AUEhcFTE N1qz7NBMEySmAAYT/sEZQd21DR71pd43DYnn5s0voY1OuUoQnzFSTw/9KD/PF4VKGK1/ KKybAUoNx8qx/j///3b35svE0oQJqRvFuWLdk= Original-Received: by 10.227.127.134 with SMTP id g6mr4750155wbs.54.1289727149657; Sun, 14 Nov 2010 01:32:29 -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 h29sm4190133wbc.15.2010.11.14.01.32.27 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 14 Nov 2010 01:32:28 -0800 (PST) In-Reply-To: (Francis Moreau's message of "Sat, 13 Nov 2010 21:46:01 +0100") 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:74056 Archived-At: Francis Moreau writes: > Dan Christensen writes: > >> Francis Moreau writes: >> >>> 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 ? >> >> The way thread sorting works is that not only are the threads sorted, >> but the children of each article are also sorted using the same >> function. So it gets called recursively a lot of times. That's >> why a change I made to cache the parsed date/time info makes such >> a bit difference. > > Hmm, I'm wondering if sorting the 'children' for a given thread is > really important. I would say that I could live without it I think > specially if it makes group entering faster. Indeed changing the definition of gnus-sort-threads-recursive like the following: (defun gnus-sort-threads-recursive (threads func) (sort threads func)) make the sorting time almost null. And when looking at the threads, I even don't make any differences with the previous method. Now the time is totaly spent in the fetching process thing. > Or better, when entering in a group, threads are not expanded, and > sorting children could happen when expanding threads. That would make > the group entering much faster and children could still be sorted. -- Francis