CPU Profiler Report #+begin_example 15205 89% - timer-event-handler 15205 89% - apply 15170 88% - # 15170 88% - eldoc-print-current-symbol-info 15170 88% - eldoc--invoke-strategy 15170 88% - eldoc-documentation-default 15170 88% - run-hook-wrapped 15170 88% - # 15170 88% - elisp-eldoc-funcall 15159 88% - apply 15159 88% - elisp-get-fnsym-args-string 15158 88% - documentation 15158 88% - pcase--make-docstring 15042 88% - help-fns-short-filename 15019 87% - file-relative-name 14867 87% file-name-case-insensitive-p 50 0% expand-file-name 26 0% file-name-as-directory 25 0% file-name-directory 13 0% - file-remote-p 13 0% find-file-name-handler 2 0% string-prefix-p 23 0% + abbreviate-file-name 103 0% + find-lisp-object-file-name 8 0% + mapatoms 3 0% documentation 1 0% + help-fns--signature 1 0% help-add-fundoc-usage 1 0% + elisp-function-argstring 11 0% + # 28 0% + activities-save-all 5 0% + auto-revert-buffers 1 0% org-element--cache-sync 1 0% + # 1549 9% Automatic GC 129 0% + command-execute 125 0% + ... 63 0% + redisplay_internal (C function) 5 0% + eldoc-pre-command-refresh-echo-area #+end_example Memory Profiler Report #+begin_example 2,535,068,356 98% - timer-event-handler 2,535,067,756 98% - apply 1,801,322,674 70% + activities-save-all 733,688,568 28% - # 733,688,568 28% - eldoc-print-current-symbol-info 733,688,568 28% - eldoc--invoke-strategy 733,688,568 28% - eldoc-documentation-default 733,688,568 28% - run-hook-wrapped 733,688,568 28% - # 733,688,568 28% - elisp-eldoc-funcall 733,598,380 28% - apply 733,598,380 28% - elisp-get-fnsym-args-string 733,494,147 28% - documentation 733,494,147 28% - pcase--make-docstring 727,468,352 28% - help-fns-short-filename 726,940,008 28% - file-relative-name 176,854,632 6% file-name-as-directory 117,474,640 4% expand-file-name 103,073,096 4% - file-name-directory 1,605,560 0% - tramp-completion-file-name-handler 1,605,560 0% - tramp-run-real-handler 1,605,560 0% - apply 1,605,560 0% file-name-directory 31,033,208 1% file-name-case-insensitive-p 27,321,392 1% match-data 120,176 0% make-closure 528,344 0% + abbreviate-file-name 4,482,938 0% + help-fns--signature 1,152,832 0% + find-lisp-object-file-name 77,584 0% + help-add-fundoc-usage 64,762 0% + help-insert-xref-button 42,992 0% buffer-string 27,504 0% documentation 20,960 0% format-message 4,928 0% + help-split-fundoc 48 0% + require 21 0% + generate-new-buffer 76,512 0% + help-split-fundoc 16,436 0% + elisp-function-argstring 9,240 0% + elisp--highlight-function-argument 2,045 0% + substitute-command-keys 90,188 0% + # 54,778 0% + auto-revert-buffers 1,360 0% + # 336 0% + org-element--cache-sync 40 0% + org-clock-update-mode-line 360 0% + timer-activate 168 0% + timer-inc-time 72 0% time-less-p 36,529,093 1% + command-execute 1,295,770 0% + redisplay_internal (C function) 70,974 0% Automatic GC 43,827 0% + eldoc-pre-command-refresh-echo-area 9,216 0% + corfu--auto-post-command 7,240 0% + indent-guide-pre-command-hook 128 0% + ... 24 0% + eldoc-schedule-timer #+end_example I tested on minimal Emacs config, the Emacs suspend issue has not happened. But when I execute profiler in minimal Emacs config too. I got same profiler report result with my fully Emacs config instance as upper profiler report. From the profiler report, I can see the CPU big calculation on: 15170 88% - eldoc-documentation-default 15170 88% - run-hook-wrapped 15170 88% - # 15170 88% - elisp-eldoc-funcall 15159 88% - apply 15159 88% - elisp-get-fnsym-args-string 15158 88% - documentation 15158 88% - pcase--make-docstring 15042 88% - help-fns-short-filename 15019 87% - file-relative-name 14867 87% file-name-case-insensitive-p I don't know why `file-name-case-insensitive-p` used so long time. My Emacs version: GNU Emacs 30.0.50 (build 2, aarch64-apple-darwin23.4.0, NS appkit-2487.50 Version 14.4.1 (Build 23E224)) of 2024-05-14 -- [ stardiviner ] I try to make every word tell the meaning that I want to express without misunderstanding. Blog: https://stardiviner.github.io/ IRC(libera.chat, freenode): stardiviner, Matrix: stardiviner GPG: F09F650D7D674819892591401B5DF1C95AE89AC3