From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/84184 Path: news.gmane.org!not-for-mail From: "Jason L Tibbitts III" Newsgroups: gmane.emacs.gnus.general Subject: Re: Long wait for "Expiring Articles..." Date: Tue, 04 Feb 2014 18:05:25 -0600 Message-ID: References: <87zjm73ljq.fsf@building.gnus.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1391559946 20467 80.91.229.3 (5 Feb 2014 00:25:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 5 Feb 2014 00:25:46 +0000 (UTC) Cc: ding@gnus.org To: Lars Ingebrigtsen Original-X-From: ding-owner+M32436@lists.math.uh.edu Wed Feb 05 01:25:52 2014 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WAqJM-0005Rh-9n for ding-account@gmane.org; Wed, 05 Feb 2014 01:25: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 1WAq8q-0002lI-Nf; Tue, 04 Feb 2014 18:15:00 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1WAq8p-0002l5-12 for ding@lists.math.uh.edu; Tue, 04 Feb 2014 18:14:59 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES128-SHA:128) (Exim 4.76) (envelope-from ) id 1WAq6z-0001nt-Sh for ding@lists.math.uh.edu; Tue, 04 Feb 2014 18:14:58 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by quimby.gnus.org with esmtp (Exim 4.80) (envelope-from ) id 1WApzz-00021O-2t; Wed, 05 Feb 2014 01:06:49 +0100 Original-Received: from epithumia.math.uh.edu ([129.7.128.2]) by mx2.math.uh.edu with smtp (Exim 4.76) (envelope-from ) id 1WApzZ-0004zr-KR; Tue, 04 Feb 2014 18:05:27 -0600 Original-Received: by epithumia.math.uh.edu (sSMTP sendmail emulation); Tue, 04 Feb 2014 18:05:25 -0600 In-Reply-To: (Jason L. Tibbitts, III's message of "Mon, 03 Feb 2014 16:59:23 -0600") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-Spam-Score: -3.5 (---) X-Spam-Score: -3.5 (---) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:84184 Archived-At: Decided to check how to profile elisp and instrumented the gnus package, but the results don't seem particularly useful. Here's the top ten functions: The only function called more than a few times was gnus-remove-if at 307 times, but with a call time down in the noise. gnus-summary-exit 1 45.138563005 45.138563005 gnus-run-hooks 8 45.091998884 5.6364998605 gnus-summary-expire-articles 1 45.0919888 45.0919888 gnus-list-of-read-articles 1 0.255410847 0.255410847 gnus-uncompress-range 1 0.213805775 0.213805775 gnus-score-save 1 0.043802103 0.043802103 gnus-list-range-difference 2 0.04156259 0.020781295 gnus-write-buffer 1 0.040823595 0.040823595 gnus-request-expire-articles 1 0.017794266 0.017794266 gnus-prin1 1 0.002680406 0.002680406 Digging into my .gnus, I found this: ;(remove-hook 'gnus-summary-prepare-exit-hook 'gnus-summary-expire-articles) Now, my .gnus really does date back from before the time Larsi started working on it, so any memories of why I would have previously tried to keep that function from being called are long gone. But I eval'ed that piece of code and group exiting is fast now. So, what am I missing by doing this? Is there a better way to handle expiring read articles from my mail folders? Or is there more I can do to debug just why this is taking so long? I used to actually know how to do things in emacs but that, too, has been long forgotten. - J<