Using rg inside mounted dir via sshfs. #1619
-
I use ripgrep in fzf. It works awesome. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
In absolute terms, absolutely, it is expected. Consider what If you run
That should then cause The more relevant comparison here is whether
There is no option. ripgrep doesn't care about sshfs. It just uses (and minimizes the number of) normal file stat calls to get metadata and read directory entries. |
Beta Was this translation helpful? Give feedback.
In absolute terms, absolutely, it is expected. Consider what
sshfs
is doing: instead of reading file metadata from your local disk, it has to read that metadata over a network. Depending on your network latency, this could be significantly slower.If you run
rg --files
twice in a row on an sshfs mounted directory, the second run may be faster due to the file metadata being cached in memory on your local system. For this reason, it's hard to do proper speed comparisons. If you're on Linux, then you can clear your local system's file cache with the following command:That should then cause
rg --files
to run more slowly again.The more releva…