From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: Morgan Willcock <mwillcock@precedence.co.uk>
Cc: 50877@debbugs.gnu.org
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 [thread overview]
Message-ID: <87bl4c4c6q.fsf@ericabrahamsen.net> (raw)
In-Reply-To: <87ee98pf11.fsf@precedence.co.uk> (Morgan Willcock's message of "Tue, 28 Sep 2021 22:27:06 +0100")
Morgan Willcock <mwillcock@precedence.co.uk> 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.
next prev parent reply other threads:[~2021-09-28 21:34 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-28 21:27 bug#50877: 28.0.50; Gnus: nnimap backend is extremely slow to initialise new groups Morgan Willcock
2021-09-28 21:34 ` Eric Abrahamsen [this message]
2021-09-28 21:53 ` Morgan Willcock
2021-09-29 4:25 ` Eric Abrahamsen
2021-09-29 6:18 ` Lars Ingebrigtsen
2021-09-29 9:11 ` Stefan Kangas
2021-09-29 15:27 ` Lars Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87bl4c4c6q.fsf@ericabrahamsen.net \
--to=eric@ericabrahamsen.net \
--cc=50877@debbugs.gnu.org \
--cc=mwillcock@precedence.co.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).