From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/74097 Path: news.gmane.org!not-for-mail From: Francis Moreau Newsgroups: gmane.emacs.gnus.general Subject: Re: Improving Gnus speed Date: Mon, 15 Nov 2010 10:40:27 +0100 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1289814120 29032 80.91.229.12 (15 Nov 2010 09:42:00 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 15 Nov 2010 09:42:00 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M22465@lists.math.uh.edu Mon Nov 15 10:41:56 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 1PHvZS-0003Se-Uh for ding-account@gmane.org; Mon, 15 Nov 2010 10:41:55 +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 1PHvYk-0002TS-9L; Mon, 15 Nov 2010 03:41:10 -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 1PHvYi-0002TA-9U for ding@lists.math.uh.edu; Mon, 15 Nov 2010 03:41:08 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1PHvYc-0005rx-RY for ding@lists.math.uh.edu; Mon, 15 Nov 2010 03:41:08 -0600 Original-Received: from mail-ww0-f48.google.com ([74.125.82.48]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1PHvYc-0002Iu-00 for ; Mon, 15 Nov 2010 10:41:02 +0100 Original-Received: by wwb39 with SMTP id 39so697347wwb.5 for ; Mon, 15 Nov 2010 01:40:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:references :date:in-reply-to:message-id:user-agent:mime-version:content-type; bh=VoGP45pbYVFR5jGiXYZt+HoQYTydDqeQUMntfmqldf0=; b=Qz8GxL+yjBbC3G+YPc1NVpwPbZ/SjGY09wZEhGX8yjqDQL2cttqCHPIEo+HVXsVOnh J6ibPDOMl/2nMAPDEiouzAZPcI1fkg2LJ8Z0PCtvSCYlYkdX6Lj2r/uG96VZmSxDv4aD NDjHeF4vgg2yiWHZ6Gmg0WdhcHeOZ5KZWSHt8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:references:date:in-reply-to:message-id:user-agent :mime-version:content-type; b=fNu+XeXbT8+8GvpSfvrn0AczmUBYww79qtqII7J2p0cmyN3Qy8WzTsOiFGxrXIXc2W J+B+/pEFT821Oq0yNsAm00973PaCSsGM1iHG6r/T82IXtiuywNch47xHfSQK74jNJ030 x9N32IREI0Mp6+MdgmnGkZBNEeP9IbBxBWYCM= Original-Received: by 10.216.24.206 with SMTP id x56mr5050878wex.2.1289814031131; Mon, 15 Nov 2010 01:40:31 -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 e12sm3581817wer.36.2010.11.15.01.40.28 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 15 Nov 2010 01:40:29 -0800 (PST) In-Reply-To: (Lars Magne Ingebrigtsen's message of "Sun, 14 Nov 2010 17:10:22 +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:74097 Archived-At: Lars Magne Ingebrigtsen writes: > Francis Moreau writes: > >> If I do '/ o', then it shows me 1298 articles but I have to wait 25 >> secs. > > If you do an `M-x elp-instrument-package RET gnus RET', `/ o', and then > `M-x elp-results', that should tell us what it's doing, I think. > > `M-x elp-results' clears out all the counters and stuff, so it's > important that you don't do more than the single command between > instrumenting and showing the result, or between each result set. I think it's what I did. Ok just to be sure, we're talking about the same thing, I'm going to describe what currently is my config and the associated elp results. Here's my config for my group caches: ("^nnml\\+cache" (display . all) (gnus-use-scoring nil) (gnus-thread-sort-functions '((not gnus-thread-sort-by-number)))) So I disabled entirely the scoring stuff since it takes a lot of time and this is not really important in these kind of groups since they store only important things (with equal scores). Therefore, when I'm entering such group, most of the time is now spent in the fetching process (not the sorting one). For example, I have a group which contains 1298 articles. Entering it lasts 9 seconds: - 7 secs in the fetching process - 2 secs in sorting + summary buffer generation As you can see, the fetching process is now the annoying step, specially since all articles for this group are cached so they're on my disk. I'm giving you the elp results when entering in the group containing 1298 articles, with all articles displayed: gnus-thread-total-score 21809 18.607898999 0.0008532211 gnus-thread-total-score-1 21805 18.246756999 0.0008368152 gnus-topic-select-group 1 10.660905 10.660905 gnus-group-select-group 1 10.66085 10.66085 gnus-group-read-group 1 10.66084 10.66084 gnus-summary-read-group 1 10.660791 10.660791 gnus-summary-read-group-1 1 10.660778 10.660778 gnus-select-newsgroup 1 7.674363 7.674363 gnus-fetch-headers 1 6.927848 6.927848 gnus-get-newsgroup-headers-xover 1 6.78624 6.78624 gnus-summary-number-of-articles-in-thread 22361 3.2177489999 0.0001439000 gnus-summary-prepare 1 2.901636 2.901636 gnus-summary-prepare-threads 1 2.881676 2.881676 gnus-dd-mmm 1301 0.9418810000 0.0007239669 gnus-articles-to-read 1 0.586238 0.586238 gnus-sorted-difference 3 0.268062 0.089354 gnus-summary-limit-children 1297 0.2439169999 0.0001880624 gnus-id-to-thread 21805 0.1913100000 8.773...e-06 gnus-retrieve-headers 2 0.153315 0.0766575 gnus-cache-retrieve-headers 1 0.138898 0.138898 gnus-sort-threads-recursive 820 0.1360629999 0.0001659304 gnus-run-hooks 1310 0.0821950000 6.274...e-05 gnus-summary-highlight-line 1301 0.0734670000 5.646...e-05 gnus-add-text-properties 10416 0.0530739999 5.095...e-06 gnus-summary-maybe-hide-threads 1 0.04941 0.04941 gnus-summary-hide-all-threads 1 0.0494 0.0494 gnus-put-text-property-excluding-characters-with-faces 1303 0.0478549999 3.672...e-05 gnus-summary-next-thread 44 0.047207 0.0010728863 gnus-summary-go-to-next-thread 44 0.046881 0.0010654772 gnus-put-text-property 6540 0.0405520000 6.200...e-06 gnus-map-function 1325 0.0323199999 2.439...e-05 gnus-summary-from-or-to-or-newsgroups 1301 0.0305190000 2.345...e-05 gnus-summary-hide-thread 22 0.025443 0.0011565 gnus-extract-address-components 1301 0.0206770000 1.589...e-05 gnus-summary-initial-limit 1 0.015415 0.015415 gnus-killed-articles 1 0.013221 0.013221 gnus-simplify-whitespace 1325 0.0102530000 7.738...e-06 gnus-make-threads 1 0.009472 0.009472 gnus-simplify-subject-re 1325 0.0092170000 6.956...e-06 gnus-sort-threads 1 0.008926 0.008926 gnus-build-old-threads 1 0.008742 0.008742 gnus-update-missing-marks 1 0.007904 0.007904 gnus-build-get-header 6 0.0077429999 0.0012904999 gnus-summary-setup-buffer 1 0.006748 0.006748 gnus-summary-mode 1 0.005939 0.005939 gnus-uncompress-range 1 0.005137 0.005137 gnus-group-update-group 1 0.005086 0.005086 gnus-mode-line-buffer-identification 3 0.005086 0.0016953333 gnus-update-summary-mark-positions 2 0.00403 0.002015 gnus-summary-insert-line 4 0.0038380000 0.0009595000 gnus-message 7 0.003665 0.0005235714 -- Francis