From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/74675 Path: news.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.gnus.general Subject: Re: expiry taking "forever" in both cpu time and real time when the IMAP UID is high Date: Sun, 05 Dec 2010 13:21:35 +0100 Organization: Programmerer Ingebrigtsen Message-ID: References: <874od8fjcc.fsf@nemi.mork.no> <1291291383-18946-1-git-send-email-bjorn@mork.no> <871v609xny.fsf_-_@nemi.mork.no> <87wrns8fsv.fsf@nemi.mork.no> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1291551724 4886 80.91.229.12 (5 Dec 2010 12:22:04 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 5 Dec 2010 12:22:04 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M23031@lists.math.uh.edu Sun Dec 05 13:21:59 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 1PPDbK-0003KZ-L4 for ding-account@gmane.org; Sun, 05 Dec 2010 13:21:58 +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 1PPDbE-0003mD-UT; Sun, 05 Dec 2010 06:21:52 -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 1PPDbD-0003lz-Ln for ding@lists.math.uh.edu; Sun, 05 Dec 2010 06:21:51 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1PPDb8-0001Dh-R5 for ding@lists.math.uh.edu; Sun, 05 Dec 2010 06:21:51 -0600 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1PPDb8-0006ka-00 for ; Sun, 05 Dec 2010 13:21:46 +0100 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PPDb7-0003ET-E2 for ding@gnus.org; Sun, 05 Dec 2010 13:21:45 +0100 Original-Received: from cm-84.215.34.171.getinternet.no ([84.215.34.171]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 05 Dec 2010 13:21:45 +0100 Original-Received: from larsi by cm-84.215.34.171.getinternet.no with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 05 Dec 2010 13:21:45 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-Lines: 49 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: cm-84.215.34.171.getinternet.no Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAKlBMVEWTb3YVDArj1uj5+f3z 7/rRvtFuPDf9/v7////t5vT+//6miZfAp7qIWlvb856/AAACKElEQVQ4jW3SsY6bQBAA0KnSEBc0 +YCNUUQNke9ag5RsSzRSpNDQbOeKRPhqR8JyiX2KVvmApKRLsbg5iWq3cOWOf8ks5/PZmClsNG+Y 2Vkb1n2syrv1dYD92Gzy9Wx5Az/w6aMxX4dvLNe/walr+HcLHmqD+OUGij/Fw/uiKK9nlLCsWMV8 v5IfBnDHeSwjKfmvK8hpxsYeeDChDGG4WJ/+u7ofhSDPOSzHIIrmY1CGcVyNQR5zyS6hfP5ahXPJ vEtYnV7gtDKOQMgZ88zlcVenTtUQnmesYu4xNLcLfg8lwzEI4oryBj4PIeSPiK2GaJAvQ+khpgp2 g9V/ct92UjAtrl94oNGt0Qr88/T+tOV95aUpWvh0sV9Z5D20CiA5w4zSQcArlhq0sD01KqKA8qEv H7G1gNvTsfIoCsKI+3KOaUqnal+G5NtdWMlq6lct6m8WtjP7LyyDWErGmM8YJrQ4mGQaFcU6zyNK 07WyBGlBtYcG/V0U0O8vK7oKigS91NQATct8uQvorj17FcYklG/qCTgGqTGP7fH7oBvUuj4StEjE vCetKBprWsMRDsoWIepG13ASXU8EdA49tmjqt9ABAIFq6n2XweLg2DLdOUfRHTpQ1LGeLAiozlFG iYMQi07YMgVHkYEtO1CR6DJXkBHUBC4BBai9EK7rkkHtwKGHRddRuzeuBdd9R50nC5ERiM5a5p7C drA1BLazeAWK7Ayv+R7cMXiJ/66uE2jh3QDTAAAAAElFTkSuQmCC Mail-Copies-To: never X-Now-Playing: The Cure's _Seventeen Seconds (1)_: "Secrets" User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:x8/AaCfKC6gBiQCEl/AwKZDlye8= X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:74675 Archived-At: Bjørn Mork writes: > OK, then I hope it will be handled. I managed to trace my particular > problem down to gnus-summary-expire-articles() in gnus-sum.el which will > > (dolist (article expirable) > > where "expirable" is the result of gnus-list-of-read-articles() in the > if total-expire is true. Yes, that's going to be very slow, even after the sequence->rtree makeover. > (gnus-compress-sequence (gnus-list-of-read-articles > "nnimap+mail.mork.no:INBOX.test.source")) > ((2 . 93) (95 . 199999)) > > and > > a select INBOX.test.source > * FLAGS (\Draft \Answered \Flagged \Deleted \Seen \Recent) > * OK [PERMANENTFLAGS (\* \Draft \Answered \Flagged \Deleted \Seen)] Limited > * 4 EXISTS > * 0 RECENT > * OK [UIDVALIDITY 1285784686] Ok > * OK [MYRIGHTS "acdilrsw"] ACL > a OK [READ-WRITE] Ok > a uid fetch 1:* flags > * 1 FETCH (UID 2 FLAGS (\Seen)) > * 2 FETCH (UID 90 FLAGS (\Seen)) > * 3 FETCH (UID 94 FLAGS ()) > * 4 FETCH (UID 200000 FLAGS ()) > a OK FETCH completed. > > I really do not understand why the list-of-read-articles isn't just (2 90) > in both cases... Those are the only two articles with a \Seen flag. Why > care about the holes? Gnus know nothing about what articles exist on the server -- just which articles that it hasn't read, and the (low . high) range is. (This could be fixed, of course, but it hasn't.) So looping over `gnus-list-of-read-articles' is a bad idea, since it can be monstrously huge, as you've seen, and should be avoided. I haven't looked at the total-expire code, but does it really need to do that? -- (domestic pets only, the antidote for overdose, milk.) larsi@gnus.org * Lars Magne Ingebrigtsen