From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/44471 Path: main.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.gnus.general Subject: Faster nnimap: nnimap-retrieve-groups-asynchronous Date: Mon, 29 Apr 2002 18:41:18 +0200 Sender: owner-ding@hpc.uh.edu Message-ID: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1020098626 22278 127.0.0.1 (29 Apr 2002 16:43:46 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 29 Apr 2002 16:43:46 +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 172EFd-0005nD-00 for ; Mon, 29 Apr 2002 18:43:45 +0200 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 172EEg-00007o-00; Mon, 29 Apr 2002 11:42:46 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Mon, 29 Apr 2002 11:42:58 -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 LAA26034 for ; Mon, 29 Apr 2002 11:42:49 -0500 (CDT) Original-Received: (qmail 28810 invoked by alias); 29 Apr 2002 16:42:32 -0000 Original-Received: (qmail 28805 invoked from network); 29 Apr 2002 16:42:31 -0000 Original-Received: from 178.230.13.217.in-addr.dgcsystems.net (HELO yxa.extundo.com) (217.13.230.178) by gnus.org with SMTP; 29 Apr 2002 16:42:31 -0000 Original-Received: from localhost.localdomain (yxa.extundo.com [217.13.230.178]) (authenticated bits=0) by yxa.extundo.com (8.12.2/8.12.2) with ESMTP id g3TGgPKg023457 for ; Mon, 29 Apr 2002 18:42:25 +0200 Original-To: ding@gnus.org Original-Lines: 22 User-Agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.2 (i686-pc-linux-gnu) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:44471 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:44471 I tried to speed up new mail checking (`g') on IMAP groups. Startup uses old technique, but subsequent `g' can be faster. The speedup depends on how many groups usually receives new mail each time you press `g' (the p below). It might depend on the server as well. For me, it is faster against Cyrus IMAPD -- results from other servers would be interesting. nnimap-retrieve-groups-asynchronous's value is t Documentation: Send asynchronous STATUS commands for each mailbox before checking mail. If you have mailboxes that rarely receives mail, this speeds up new mail checking. It works by first sending STATUS commands for each mailbox, and then only checking groups which has a modified UIDNEXT more carefully for new mail. In summary, the default is O((1-p)*k+p*n) and changing it to nil makes it O(n). If p is small, then the default is probably faster. You can customize this variable. Defined in `nnimap'.