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: