Re: org-persist-write slow when pp-use-max-width is t

2023-01-20 Thread Ihor Radchenko
Michael Eliachevitch writes: > I submitted a bug report where I attached the index file and a minimal > example file which benchmarks running pp on it, with which I could reproduce > my issue from emacs -Q: > > https://debbugs.gnu.org/cgi/bugreport.cgi?bug=58687 > > Let's see what the emacs

Re: org-persist-write slow when pp-use-max-width is t

2022-10-21 Thread Michael Eliachevitch
pp-max-width has been introduced in Emacs 29. The fact that pp becomes too slow is likely something to be fixed before the next Emacs release. Good catch and I agree. I compile emacs from the master branch and probably discovered in the emacs-news which I check between upgrades and I

Re: org-persist-write slow when pp-use-max-width is t

2022-10-20 Thread Ihor Radchenko
Michael Eliachevitch writes: > I was wondering why kill-emacs emacs takes over a minute and after some > profiling I found out that the call to org-persist-write-all takes long when > pp-use-max-width is set to t and pp-max-width is also set (in my case to t, > the window-width), which

org-persist-write slow when pp-use-max-width is t

2022-10-20 Thread Michael Eliachevitch
I was wondering why kill-emacs emacs takes over a minute and after some profiling I found out that the call to org-persist-write-all takes long when pp-use-max-width is set to t and pp-max-width is also set (in my case to t, the window-width), which enables line folding in pp. The pp-call