emacs/var/elfeed/db/data/12/1203e97927ad1b1509b1d6806a7df63e4a66997b
2022-01-03 12:49:32 -06:00

1 line
3 KiB
Plaintext

<!-- SC_OFF --><div class="md"><p>Started using tramp and running into many performance issues of course, namely to start is that <code>projectile-find-file</code> is quite slow. Profiled it and got the following:</p> <pre><code>- command-execute 42535 88% - call-interactively 42535 88% - funcall-interactively 42535 88% - projectile-find-file 42532 88% - projectile--find-file 42532 88% - projectile-project-files 42435 88% - cl-mapcan 42427 88% - map-can 42427 88% - #&lt;compiled 0x1ff2eba10af1&gt; 42427 88% - mapcar 40328 83% - #&lt;compiled 0x1ff312b08929&gt; 40310 83% - file-relative-name 40290 83% - file-name-case-insensitive-p 13924 28% - tramp-file-name-handler 13862 28% - apply 9420 19% - tramp-sh-file-name-handler 9403 19% - apply 9351 19% - tramp-handle-file-name-case-insensitive-p 7905 16% - expand-file-name 3721 7% + tramp-file-name-handler 3684 7% - file-remote-p 3594 7% + tramp-file-name-handler 3453 7% + tramp-dissect-file-name 252 0% + tramp-get-method-parameter 149 0% + tramp-get-connection-property 20 0% + tramp-sh-handle-expand-file-name 1413 2% #&lt;compiled 0x1ff312fbd3d9&gt; 2 0% tramp-file-name-for-operation 2 0% + tramp-find-foreign-file-name-handler 3543 7% + tramp-dissect-file-name 515 1% tramp-tramp-file-p 165 0% + tramp-replace-environment-variables 33 0% #&lt;compiled 0x1ff30ebf25e9&gt; 3 0% #&lt;compiled 0x1ff30ad491e5&gt; 2 0% - file-remote-p 13668 28% - tramp-file-name-handler 13414 27% + apply 9390 19% + tramp-find-foreign-file-name-handler 3202 6% + tramp-dissect-file-name 437 0% tramp-tramp-file-p 144 0% + tramp-replace-environment-variables 22 0% #&lt;compiled 0x1ff2eba93a69&gt; 5 0% #&lt;compiled 0x1ff30aa97479&gt; 2 0% - expand-file-name 7089 14% - tramp-file-name-handler 7030 14% + tramp-find-foreign-file-name-handler 3201 6% + apply 3024 6% + tramp-dissect-file-name 423 0% tramp-tramp-file-p 137 0% + tramp-replace-environment-variables 14 0% #&lt;compiled 0x1ff2fbd4c355&gt; 6 0% #&lt;compiled 0x1ff2f2fea831&gt; 2 0% + file-name-as-directory 4933 10% string-prefix-p 7 0% #&lt;compiled 0x1ff2debdc7b5&gt; 2 0% + projectile-dir-files 2024 4% + projectile-get-project-directories 8 0% + projectile-completing-read 95 0% + projectile-maybe-invalidate-cache 1 0% + projectile-acquire-root 1 0% + doom/toggle-profiler 3 0% + ... 5541 11% + #&lt;compiled 0x4341d43d&gt; 1 0% + etcc--evil-set-cursor 1 0% </code></pre> <p>Looks like the majority of the usage centers around <code>tramp-file-name-handler</code> but I&#39;m not entirely sure what could be causing the slow down there? Is it just the network latency or is there something I can profile further and perhaps in turn tweak?</p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/J-is-Juicy"> /u/J-is-Juicy </a> <br/> <span><a href="https://www.reddit.com/r/emacs/comments/r7gkza/improving_performance_of_projectilefindfile_over/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/emacs/comments/r7gkza/improving_performance_of_projectilefindfile_over/">[comments]</a></span>