Re: Flyspell causes severe slowdown when manipulating footnotes

2022-12-12 Thread Ihor Radchenko
aroz...@gmail.com writes: > Happy to. What is the best way to temporarily downgrade to 9.5.5? I install > Emacs through this Arch AUR > package, which installs the latest version of Org automatically. If you have Emacs 28, Org 9.5.5 is built-in there

Re: Flyspell causes severe slowdown when manipulating footnotes

2022-12-12 Thread arozbiz
Happy to. What is the best way to temporarily downgrade to 9.5.5? I install Emacs through this Arch AUR package, which installs the latest version of Org automatically. Best, Alan On Mon, Dec 12, 2022 at 3:32 AM Ihor Radchenko wrote: > aroz...@gmai

Re: Flyspell causes severe slowdown when manipulating footnotes

2022-12-12 Thread Ihor Radchenko
aroz...@gmail.com writes: > 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. Sure, but it is not going to help others. Could you try to produce the profil

Re: Flyspell causes severe slowdown when manipulating footnotes

2022-12-11 Thread arozbiz
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)

Re: Flyspell causes severe slowdown when manipulating footnotes

2022-12-10 Thread Rudolf Adamkovič
Ihor Radchenko writes: > I just pushed a slight optimization to the footnote sorting code. Unrelated to the footnotes mentioned above, but I noticed that Org starts and kills Ispell all the time. I see the following messages repeated over and over when working with Org: Starting new Ispell p

Re: Flyspell causes severe slowdown when manipulating footnotes

2022-12-10 Thread Ihor Radchenko
aroz...@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.g

Re: Flyspell causes severe slowdown when manipulating footnotes

2022-12-08 Thread arozbiz
Thanks Ihor for the response. Unfortunately, setting org-element--cache-self-verify to nil didn't work. Profile report attached. On Wed, Dec 7, 2022 at 7:23 AM Ihor Radchenko wrote: > aroz...@gmail.com writes: > > > I just upgraded to Org 9.6 and I've noticed that having flyspell-mode > > turned

Re: Flyspell causes severe slowdown when manipulating footnotes

2022-12-07 Thread Ihor Radchenko
aroz...@gmail.com writes: > I just upgraded to Org 9.6 and I've noticed that having flyspell-mode > turned on causes very large slowdowns when adding or deleting footnotes in > an org file with lots of footnotes (e.g., more than 200, which is common > for the academic articles that I use org for).