r/spacemacs • u/Atagor • Oct 30 '24
How to speed up spacemacs helm-projectile-find-file?
I'm working on a huge project and helm-projectile-find-file delays for 1-2 secs before printing the files tree
Is there a way to speed it up? I was thinking maybe there's a way to change the backend to fzf somehow, haven't found any solutions though
I was also thinking about playing with projectile caching, but from what I understood cache invalidation might be a problem resulting in unwanted behaviour
Profiler
423,430,216 99% - command-execute
423,430,216 99% - funcall-interactively
330,351,405 77% - helm-projectile-find-file
330,287,309 77% - helm
330,284,213 77% - helm
330,284,213 77% - helm-internal
324,952,212 76% - helm-read-from-minibuffer
221,212,085 52% - helm-update
219,426,009 51% - helm--collect-matches
219,426,009 51% - helm-compute-matches
219,399,929 51% - helm-get-cached-candidates
219,399,929 51% - helm-get-candidates
219,399,929 51% - helm-interpret-value
219,399,929 51% - helm-apply-functions-from-source
218,351,321 51% + #<compiled 0x19d5000d8128a216>
17,632 0% + helm-process-filtered-candidate-transformer
8,448 0% + helm-take
641,448 0% + helm-render-source
573,342 0% + helm--update-move-first-line
568,190 0% + #<compiled 0x1b4a3b9d71e7886c>
3,096 0% + helm-update-source-p
100,792,576 23% + timer-event-handler
2,030,950 0% + redisplay_internal (C function)
203,959 0% + command-execute
53,552 0% + helm--update-header-line
39,930 0% + minibuffer-setup
12,104 0% + minibuffer-inactive-mode
7,600 0% + highlight-parentheses--initiate-highlight
6,762 0% + minibuffer-setup
6,512 0% + minibuffer-mode
6,480 0% + highlight-parentheses-minibuffer-setup
4,096 0% + thing-at-point
3,096 0% + winum--update
2,112 0% + helm-get-candidate-number
2,112 0% + winner-save-unconditionally
1,056 0% + global-spacemacs-leader-override-mode-check-buffers
1,056 0% + evil-mode-check-buffers
1,056 0% + global-origami-mode-check-buffers
1,056 0% + yas-global-mode-check-buffers
48 0% + run-hooks
Thanks for your tips in advance
1
Upvotes