When I open for the first time Treemacs into a project (not only the first time ever, but every time I open the project) it can take some minutes to load, blocking Emacs. This is the CPU profile:
- command-execute 437 76%
- call-interactively 436 76%
- funcall-interactively 273 47%
- +treemacs/toggle 261 45%
- require 227 39%
- byte-code 201 35%
- require 130 22%
- byte-code 124 21%
- require 89 15%
- byte-code 85 14%
- require 68 11%
- byte-code 66 11%
+ require 49 8%
+ do-after-load-evaluation 1 0%
+ defconst 1 0%
+ eval-after-load 6 1%
treemacs-join-path 1 0%
+ custom-declare-face 1 0%
+ do-after-load-evaluation 1 0%
+ do-after-load-evaluation 25 4%
+ provide 1 0%
+ let* 28 4%
+ execute-extended-command 12 2%
+ byte-code 163 28%
- ... 133 23%
Automatic GC 128 22%
+ while 3 0%
+ #<compiled 0x1ff845295709> 1 0%
+ evil-local-mode 1 0%
+ redisplay_internal (C function) 1 0%
treemacs--post-command 1 0%
I cannot guess what it could be.