From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/44491 Path: main.gmane.org!not-for-mail From: Danny Siu Newsgroups: gmane.emacs.gnus.general Subject: Re: Faster nnimap: nnimap-retrieve-groups-asynchronous Date: Mon, 29 Apr 2002 17:21:17 -0700 Organization: Adobe Systems Incorporated Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1020126201 12404 127.0.0.1 (30 Apr 2002 00:23:21 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 30 Apr 2002 00:23:21 +0000 (UTC) Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 172LQO-0003Dx-00 for ; Tue, 30 Apr 2002 02:23:20 +0200 Original-Received: from sina.hpc.uh.edu ([129.7.128.10]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 172LPJ-0003oM-00; Mon, 29 Apr 2002 19:22:13 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Mon, 29 Apr 2002 19:22:24 -0500 (CDT) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id TAA28501 for ; Mon, 29 Apr 2002 19:22:08 -0500 (CDT) Original-Received: (qmail 15176 invoked by alias); 30 Apr 2002 00:21:50 -0000 Original-Received: (qmail 15171 invoked from network); 30 Apr 2002 00:21:50 -0000 Original-Received: from smtp-relay-1.adobe.com (192.150.11.1) by gnus.org with SMTP; 30 Apr 2002 00:21:50 -0000 Original-Received: from inner-relay-2.corp.adobe.com (inner-relay-2 [153.32.1.52]) by smtp-relay-1.adobe.com (8.12.3/8.12.3) with ESMTP id g3U0NCVW026902 for ; Mon, 29 Apr 2002 17:23:12 -0700 (PDT) Original-Received: from mailsj-v1.corp.adobe.com (mailsj-dev.corp.adobe.com [153.32.1.192]) by inner-relay-2.corp.adobe.com (8.12.3/8.12.3) with ESMTP id g3U0JcBA020748 for ; Mon, 29 Apr 2002 17:19:38 -0700 (PDT) Original-Received: from GIGI.corp.adobe.com ([153.32.155.215]) by mailsj-v1.corp.adobe.com (Netscape Messaging Server 4.15 v1 Jul 11 2001 16:32:57) with ESMTP id GVCUBI00.R7P for ; Mon, 29 Apr 2002 17:21:18 -0700 Original-To: ding@gnus.org X-Location: San Jose, CA X-Emacs: 21.2.1 X-Face: fHBvLrQQW(GRz#RNTAN(,')p8NGv}{6dMh\:?%*D\+8hgkiA_dub1@\,Y"r5'a8C(8e~cGG(WFTU\OlAqI[B?V7m'ZGkquvZ/d k~E"A"@WK;0mLF&\%W1kIC]O"z#/>YNUefE1%5/NUX;ml]@$nW;05Z9uZ/CqTz]A)+`1ROuF~||pG= k>Zi@hE- X-Mailer: Oort Gnus v0.06 In-Reply-To: (Simon Josefsson's message of "Mon, 29 Apr 2002 18:41:18 +0200") Original-Lines: 33 User-Agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.2 (i386-msvc-nt5.0.2195) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:44491 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:44491 'g' is now ~150% faster than before for my 60+ nnimap groups on UoW imapd. cool stuff! Simon Josefsson writes: Simon> I tried to speed up new mail checking (`g') on IMAP groups. Simon> Startup uses old technique, but subsequent `g' can be faster. The Simon> speedup depends on how many groups usually receives new mail each Simon> time you press `g' (the p below). It might depend on the server as Simon> well. For me, it is faster against Cyrus IMAPD -- results from Simon> other servers would be interesting. Simon> nnimap-retrieve-groups-asynchronous's value is t Simon> Documentation: Send asynchronous STATUS commands for each mailbox Simon> before checking mail. If you have mailboxes that rarely receives Simon> mail, this speeds up new mail checking. It works by first sending Simon> STATUS commands for each mailbox, and then only checking groups Simon> which has a modified UIDNEXT more carefully for new mail. Simon> In summary, the default is O((1-p)*k+p*n) and changing it to nil Simon> makes it O(n). If p is small, then the default is probably faster. Simon> You can customize this variable. Simon> Defined in `nnimap'. -- Danny Siu