From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/85506 Path: news.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.gnus.general Subject: Re: Performance problem of imap move Date: Sun, 25 Jan 2015 15:57:23 +1100 Message-ID: <87oapn5ufg.fsf@building.gnus.org> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1422161930 14994 80.91.229.3 (25 Jan 2015 04:58:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 25 Jan 2015 04:58:50 +0000 (UTC) Cc: ding@gnus.org To: mremond@process-one.net (=?iso-8859-1?Q?Micka=EBl_R=E9mond?=) Original-X-From: ding-owner+M33748@lists.math.uh.edu Sun Jan 25 05:58:49 2015 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 1YFFHZ-0006Yd-Kk for ding-account@gmane.org; Sun, 25 Jan 2015 05:58:45 +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 1YFFGq-0004Os-TO; Sat, 24 Jan 2015 22:58:00 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES128-SHA:128) (Exim 4.63) (envelope-from ) id 1YFFGo-0004Oh-Cj for ding@lists.math.uh.edu; Sat, 24 Jan 2015 22:57:58 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.84) (envelope-from ) id 1YFFGm-0002Uw-G7 for ding@lists.math.uh.edu; Sat, 24 Jan 2015 22:57:57 -0600 Original-Received: from hermes.netfonds.no ([80.91.224.195]) by quimby.gnus.org with esmtp (Exim 4.80) (envelope-from ) id 1YFFGk-0006ul-NN for ding@gnus.org; Sun, 25 Jan 2015 05:57:54 +0100 Original-Received: from [27.96.197.126] (helo=building.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1YFFGQ-0002Nc-Eh; Sun, 25 Jan 2015 05:57:35 +0100 In-Reply-To: (=?iso-8859-1?Q?=22Micka=EBl?= =?iso-8859-1?Q?_R=E9mond=22's?= message of "Wed, 21 Jan 2015 15:11:44 +0100") User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux) X-MailScanner-ID: 1YFFGQ-0002Nc-Eh MailScanner-NULL-Check: 1422766655.55445@7n2HzJvFB2fqsTl6uyT1rw X-Spam-Status: No X-Spam-Score: -2.9 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:85506 Archived-At: mremond@process-one.net (Micka=EBl R=E9mond) writes: > I did more investigations enabling IMAP command logs. > I think the issue is that the last command done during a move is a fetch > of all FLAGS: > > 474 UID FETCH 1:* FLAGS Geez. That's the result of a not very thought through calling sequence. It's calling `gnus-group-get-new-news-this-group' to update the line of the group we've moved the message to, and that function is also used for `M-g' to make nnimap completely rescan the group. There doesn't seem to be any way in nnimap to get the new article count for a single group without doing a total rescan of the group, and that is, as you've found out, really slow. This will have to be refactored a bit, and a new nnimap function will have to be written, I think... --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/