From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/69830 Path: news.gmane.org!not-for-mail From: David Engster Newsgroups: gmane.emacs.gnus.general Subject: Re: (gnus-summary-goto-article ) extremely slow for certain IMAP server Date: Mon, 26 Jul 2010 21:27:13 +0200 Message-ID: <87pqyayrfy.fsf@randomsample.de> References: <201007262042.04971.tassilo@member.fsf.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1280172478 17733 80.91.229.12 (26 Jul 2010 19:27:58 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 26 Jul 2010 19:27:58 +0000 (UTC) Cc: ding@gnus.org, =?iso-8859-1?Q?S=E9bastien_Vauban?= , David Maus To: Tassilo Horn Original-X-From: ding-owner+M18220@lists.math.uh.edu Mon Jul 26 21:27:55 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 1OdTL7-0006io-3J for ding-account@gmane.org; Mon, 26 Jul 2010 21:27:53 +0200 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 1OdTKp-0000kr-Pv; Mon, 26 Jul 2010 14:27:35 -0500 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 1OdTKm-0000kX-U4 for ding@lists.math.uh.edu; Mon, 26 Jul 2010 14:27:32 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1OdTKj-0006sX-VF for ding@lists.math.uh.edu; Mon, 26 Jul 2010 14:27:32 -0500 Original-Received: from m61s02.vlinux.de ([83.151.21.164]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1OdTKj-0001Yl-00 for ; Mon, 26 Jul 2010 21:27:29 +0200 Original-Received: from dslc-082-082-174-024.pools.arcor-ip.net ([82.82.174.24] helo=spaten) by m61s02.vlinux.de with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.69) (envelope-from ) id 1OdTKh-00050T-VX; Mon, 26 Jul 2010 21:27:28 +0200 In-Reply-To: <201007262042.04971.tassilo@member.fsf.org> (Tassilo Horn's message of "Mon, 26 Jul 2010 20:42:04 +0200") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.2 (gnu/linux) Mail-Copies-To: never Mail-Followup-To: Tassilo Horn , ding@gnus.org, =?iso-8859-1?Q?S=E9bastien_Vauban?= , David Maus X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:69830 Archived-At: Tassilo Horn writes: > We've edebugged and profiled the gnus code, and the culprit is the > function `nnimap-request-article-part'. When given a message-id instead > of an article number, that function will query the IMAP server with > `imap-search', and then emacs hangs 5 minutes till the server finally > responds. > > Ok, it's basically the server's fault, Yes. An IMAP server should be able to retrieve articles based on message-id's very quickly, since this is a pretty common task. > but can't Gnus do any better? Especially, the mapping message-id to > article number is also contained in the .overview file of the group, > but it seems that this file is not checked. Yes. You could use nnimap-retrieve-headers-from-file and check if you find the MID there. > Or can this call to `imap-search' somehow be omitted by optional Gnus > features like the gnus registry? Probably, but currently the registry does not keep track of the article numbers, only of the groups. I guess this could easily be added, though? But why don't you just save the article number together with the message-id in the link? -David