emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: arozbiz@gmail.com
To: Ihor Radchenko <yantar92@posteo.net>
Cc: emacs-orgmode@gnu.org
Subject: Re: Flyspell causes severe slowdown when manipulating footnotes
Date: Sun, 11 Dec 2022 16:58:48 -0600	[thread overview]
Message-ID: <CAJniy+MBMAasHWAFT10oDosTBKVZsst=rf7AeuxrG-XF8RHC_Q@mail.gmail.com> (raw)
In-Reply-To: <87k02zr1xm.fsf@localhost>

[-- Attachment #1: Type: text/plain, Size: 1175 bytes --]

Thanks. It definitely helps, but it's still quite slow. What's made the
biggest difference is is advising the relevant functions to turn flyspell
off beforehand and then turn it back on.

(defun azr/org-footnote-disable-flyspell (orig-fun &rest args)
  (flyspell-mode -1)
  (apply orig-fun args)

(advice-add 'org-footnote-new :around #'azr/org-footnote-disable-flyspell)
(advice-add 'org-footnote-delete :around


On Sat, Dec 10, 2022 at 4:24 AM Ihor Radchenko <yantar92@posteo.net> wrote:

> arozbiz@gmail.com writes:
> > Thanks Ihor for the response. Unfortunately, setting
> > org-element--cache-self-verify to nil didn't work. Profile report
> attached.
> Thanks!
> I just pushed a slight optimization to the footnote sorting code.
> Can you try again using the latest main?
> https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=169333e1c
> --
> Ihor Radchenko // yantar92,
> Org mode contributor,
> Learn more about Org mode at <https://orgmode.org/>.
> Support Org development at <https://liberapay.com/org-mode>,
> or support my work at <https://liberapay.com/yantar92>

[-- Attachment #2: Type: text/html, Size: 2059 bytes --]

  parent reply	other threads:[~2022-12-11 23:00 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-06  1:34 Flyspell causes severe slowdown when manipulating footnotes arozbiz
2022-12-07 13:23 ` Ihor Radchenko
2022-12-08 14:12   ` arozbiz
2022-12-10 10:24     ` Ihor Radchenko
2022-12-10 23:43       ` Rudolf Adamkovič
2022-12-11  9:28         ` Flyspell process called frequently when using Org export (was: Flyspell causes severe slowdown when manipulating footnotes) Ihor Radchenko
2022-12-11 15:54           ` Rudolf Adamkovič
2022-12-12  9:30             ` Ihor Radchenko
2022-12-11 22:58       ` arozbiz [this message]
2022-12-12  9:32         ` Flyspell causes severe slowdown when manipulating footnotes Ihor Radchenko
2022-12-12 14:04           ` arozbiz
2022-12-12 14:09             ` Ihor Radchenko

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:

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAJniy+MBMAasHWAFT10oDosTBKVZsst=rf7AeuxrG-XF8RHC_Q@mail.gmail.com' \
    --to=arozbiz@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=yantar92@posteo.net \


* 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


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).