[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#56113: [PATCH] * lisp/mail/mail-extr.el: only set fundamental-mode i
From: |
Kevin Brubeck Unhammer |
Subject: |
bug#56113: [PATCH] * lisp/mail/mail-extr.el: only set fundamental-mode if unset |
Date: |
Mon, 20 Jun 2022 22:04:24 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) |
Hi,
I noticed that opening groups with lots of unread messages in Gnus was
quite slow; profile shows that because I (bbdb-insinuate-gnus), it runs
mail-extract-address-components on them all and that function does
(with-current-buffer (get-buffer-create …)
(fundamental-mode)
…)
for every mail. Apparently (fundamental-mode) is slow since I use
evil-mode – so evil-mode could be faster, but also it seems unnecessary
to call fundamental-mode on fresh buffers? In any case, the attached
patch makes opening summaries 10x faster for people like me on
gnus+bbdb+evil.
best regards,
Kevin Brubeck Unhammer
(I have signed the copyright papers, still in the same job.)
0001-lisp-mail-mail-extr.el-only-set-fundamental-mode-if-.patch
Description: Text Data
signature.asc
Description: PGP signature
- bug#56113: [PATCH] * lisp/mail/mail-extr.el: only set fundamental-mode if unset,
Kevin Brubeck Unhammer <=