[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PERFORMANCE] Why some org code is so deep invoked?
From: |
Christopher M. Miles |
Subject: |
[PERFORMANCE] Why some org code is so deep invoked? |
Date: |
Fri, 12 Aug 2022 08:26:40 +0800 |
User-agent: |
mu4e 1.8.6; emacs 28.1 |
When I profiling Org Agenda generation, I found that org code is deeply invoked
in Emacs profiler report.
My Question:
- What reason caused this situation?
- Can Org Mode optimize those deeply invoked code?
I have option ~org-agenda-start-with-clockreport-mode~ enabled. And have lot
files in ~org-agenda-files~ list:
#+begin_src emacs-lisp
(length org-agenda-files)
#+end_src
#+RESULTS[(2022-08-12 08:29:28) 1c2c57fd8db39360b33abd3465e5ebb26c817627]:
: 46
And here is those files lines size:
#+begin_src emacs-lisp :results value verbatim
(sort
(let ((return '()))
(dolist (file org-agenda-files
return)
(when-let ((buffer (get-buffer (file-name-nondirectory file))))
(with-current-buffer buffer
(setf return
(add-to-list 'return (count-lines (point-min) (point-max))))))))
'>)
#+end_src
#+RESULTS[(2022-08-12 09:03:07) 2af183ec8f3ea19e280dc2c53e861b75c3e42b7a]:
: (25455 12361 11772 10938 9530 8506 4457 3752 2316 2041 1277 1216 1196 1163
1006 1005 878 762 689 685 657 510 378 353 316 268 228 226 197 143 133 94 93 78
68 46 44 39 38 36 34 20 18 17 14 0)
Here is the Emacs profiler reports in attachments:
profiler-cpu-report.log
Description: profiler-cpu-report.log
profiler-memory-report.log
Description: profiler-memory-report.log
--
[ 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
signature.asc
Description: PGP signature
- [PERFORMANCE] Why some org code is so deep invoked?,
Christopher M. Miles <=
- Re: [PERFORMANCE] Why some org code is so deep invoked?, Ihor Radchenko, 2022/08/11
- Re: [PERFORMANCE] Why some org code is so deep invoked?, Christopher M. Miles, 2022/08/12
- Message not available
- Message not available
- Re: [PERFORMANCE] Why some org code is so deep invoked?, Ihor Radchenko, 2022/08/12
- Re: [PERFORMANCE] Why some org code is so deep invoked?, Christopher M. Miles, 2022/08/12
- Message not available
- Re: [PERFORMANCE] Why some org code is so deep invoked?, Ihor Radchenko, 2022/08/12
- Re: [PERFORMANCE] Why some org code is so deep invoked?, Christopher M. Miles, 2022/08/12
- Message not available
- Re: [PERFORMANCE] Why some org code is so deep invoked?, Ihor Radchenko, 2022/08/13
- Re: [PERFORMANCE] Why some org code is so deep invoked?, Christopher M. Miles, 2022/08/13