From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.bugs Subject: bug#50877: 28.0.50; Gnus: nnimap backend is extremely slow to initialise new groups Date: Tue, 28 Sep 2021 14:34:05 -0700 Message-ID: <87bl4c4c6q.fsf@ericabrahamsen.net> References: <87ee98pf11.fsf@precedence.co.uk> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13771"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 50877@debbugs.gnu.org To: Morgan Willcock Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Sep 28 23:35:12 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mVKkq-0003LL-9M for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 28 Sep 2021 23:35:12 +0200 Original-Received: from localhost ([::1]:53772 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mVKkp-0002Hb-BQ for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 28 Sep 2021 17:35:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42274) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mVKkg-0002G9-Ni for bug-gnu-emacs@gnu.org; Tue, 28 Sep 2021 17:35:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35667) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mVKkg-0005IY-F1 for bug-gnu-emacs@gnu.org; Tue, 28 Sep 2021 17:35:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mVKkg-0000sB-CO for bug-gnu-emacs@gnu.org; Tue, 28 Sep 2021 17:35:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eric Abrahamsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 28 Sep 2021 21:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50877 X-GNU-PR-Package: emacs Original-Received: via spool by 50877-submit@debbugs.gnu.org id=B50877.16328648563291 (code B ref 50877); Tue, 28 Sep 2021 21:35:02 +0000 Original-Received: (at 50877) by debbugs.gnu.org; 28 Sep 2021 21:34:16 +0000 Original-Received: from localhost ([127.0.0.1]:47212 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mVKjw-0000r1-3m for submit@debbugs.gnu.org; Tue, 28 Sep 2021 17:34:16 -0400 Original-Received: from mail.ericabrahamsen.net ([52.70.2.18]:60514) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mVKjt-0000qn-Sl for 50877@debbugs.gnu.org; Tue, 28 Sep 2021 17:34:14 -0400 Original-Received: from localhost (75-172-126-110.tukw.qwest.net [75.172.126.110]) (Authenticated sender: eric@ericabrahamsen.net) by mail.ericabrahamsen.net (Postfix) with ESMTPSA id 42646FA024; Tue, 28 Sep 2021 21:34:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericabrahamsen.net; s=mail; t=1632864847; bh=wR8jEh293TVsXdSTjXbCHyEqest6mYLvZ9ykCgFxVWc=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=qfIir4bmFC5/4gBt48xOezAMMxEWpG9t6t6ZKUKzrs2ZEaOEkpUysblAwuFhSTCSE oFpoilrIBvNc+qOZ07mC8IFW+K8nritGfHcBZpAj2ws497VVyU8gjsxakYtBV5siJ5 prN8VqfMM62eO/A2k2nOkw+9sf0v+lnOtT1r1ybQ= In-Reply-To: <87ee98pf11.fsf@precedence.co.uk> (Morgan Willcock's message of "Tue, 28 Sep 2021 22:27:06 +0100") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:215803 Archived-At: Morgan Willcock writes: > It seems that the nnimap backend in Emacs 28 is now extremely slow to > initialise. > > The initialisation first downloads 10MB of data from the IMAP server: > > nnimap read 10219k from server (initial sync of 16 groups; please wait) > > Once all data is downloaded Emacs 27 takes 2 or 3 seconds to process the > data and display the group buffer whereas Emacs 28 takes 5 minutes 30 > seconds for the same data. CPU usage is at 100% for this time. The time > taken is long enough that I've repeatedly thought the nnimap backend was > broken in Emacs 28. > > To recreate with emacs -Q all I am doing is removing all local news > files: > > rm ~/.newsrc* > > ...and then configuring the bare minimum for Gnus to use nnimap: > > ;; No primary server > (setq gnus-select-method '(nnnil "")) > > ;; IMAP as a secondary > (setq gnus-secondary-select-methods > '((nnimap "company" > (nnimap-address "server") > (nnimap-server-port "imap") > (nnimap-stream plain)))) > > I imagine this problem is only going to show where mailbox sizes are > fairly large (this example is 10MB of headers not 10MB of e-mail). Using > the option to debug-on-quit it seems that I always interupt somewhere > inside `seq-difference' inside of `nnimap-update-info': You could try reverting 20f7fa691b7c2859b96550d9ccb326bf394e160d and see if that fixes it. That change went in in April, though, so unless you haven't updated for a while (or you've been seeing this problem for a long time) it might not be likely.