|
| From: | Christopher M. Miles |
| Subject: | Re: [BUG] kill-buffer invoked org-persistent-write-all-buffer caused Emacs long suspend |
| Date: | Thu, 28 Oct 2021 21:58:09 +0800 |
| User-agent: | mu4e 1.7.0; emacs 28.0.60 |
Ihor Radchenko <yantar92@gmail.com> writes:
"Christopher M. Miles" <numbchild@gmail.com> writes:Here is the profiler report:CPU:#+beginexample 4003 66% - command-execute 4003 66% - call-interactively 3913 65% - funcall-interactively 3320 55% - kill-buffer 3318 55% - org-persist-write-all-buffer 3318 55% - org-persist-write-allSorry for this. Should be already fixed by 5abd149cf. Are you on latest main?Best, Ihor
Thanks for quick patch, I'm on the latest main. and I pulled your patch. Now it's not infinite looping, but still takes about 3.5 seconds. So I take another profiler profiling again.
CPU
4824 88% - command-execute4824 88% - call-interactively4797 87% - funcall-interactively4313 78% - kill-buffer4310 78% - org-persist-write-all-buffer4310 78% - org-persist-write-all4310 78% - if4310 78% - let4310 78% - while4310 78% - let4310 78% - if4310 78% - progn4310 78% - org-persist-write4310 78% - if4310 78% - save-current-buffer4310 78% - let3903 71% - let3903 71% - if3903 71% - if3858 70% - progn3858 70% - let3380 61% - unwind-protect3380 61% - prog13380 61% - save-current-buffer103 1% + write-region390 7% + let88 1% if405 7% + org-persist--get-index2 0% + setq1 0% + auto-revert-notify-rm-watch1 0% + valign--maybe-clean-advice1 0% + recentf-track-closed-file484 8% + counsel-M-x27 0% + ivy-completing-read642 11% - ...642 11% Automatic GC1 0% + global-font-lock-mode-check-buffers1 0% + redisplay_internal (C function)
Memory:
4,155,608,836 99% - command-execute4,155,608,836 99% - call-interactively4,155,381,887 99% - funcall-interactively4,151,008,326 99% - kill-buffer4,151,002,497 99% - org-persist-write-all-buffer4,151,002,497 99% - org-persist-write-all4,151,002,497 99% - if4,151,002,497 99% - let4,151,002,497 99% - while4,151,002,497 99% - let4,151,002,497 99% - if4,150,994,313 99% - progn4,150,994,313 99% - org-persist-write4,150,994,313 99% - if4,150,994,313 99% - save-current-buffer4,150,994,313 99% - let4,140,546,179 99% - let4,140,546,179 99% - if4,140,546,179 99% - if4,140,540,035 99% - progn4,140,540,035 99% - let3,879,416,903 93% - unwind-protect3,879,416,903 93% - prog13,879,416,903 93% - save-current-buffer20,391,917 0% - write-region20,165,663 0% + select-safe-coding-system226,254 0% + make-lock-file-name256,994 0% + prin1260,984,307 6% + let122,760 0% + if16,065 0% generate-new-buffer7,942,223 0% + org-persist--get-index2,505,911 0% + setq8,184 0% + or3,072 0% + tramp-flush-file-function1,120 0% + preview-kill-buffer-cleanup1,024 0% + save-place-to-alist613 0% + replace-buffer-in-windows4,373,561 0% + counsel-M-x226,949 0% + ivy-completing-read65,528 0% + ...20,692 0% + redisplay_internal (C function)
<#secure method=pgpmime mode=sign>
--
[ stardiviner ]
I try to make every word tell the meaning that I want to express.
Blog: https://stardiviner.github.io/
IRC(freenode): stardiviner, Matrix: stardiviner
GPG: F09F650D7D674819892591401B5DF1C95AE89AC3
| [Prev in Thread] | Current Thread | [Next in Thread] |