4 ms·
plocate is a very fast mlocate alternative that uses indexes over trigrams and io_uring for reading the database. With fzf you can have a pretty fast fuzzy sear
by Foxboron 6y ago
plocate is a very fast mlocate alternative that uses indexes over trigrams and io_uring for reading the database. With fzf you can have a pretty fast fuzzy search over your entire indexed disk.
FZF_DEFAULT_COMMAND="plocate ''" \
fzf --bind "change:reload:plocate {q} || true" \
--ansi --phony --query "" --preview 'file {}' --bind '?:preview:cat {}'
https://plocate.sesse.net/ https://plocate.sesse.net/
I don't actually use it. It's more a fun hack.
- DyslexicAtheist 6y agothanks for this, I just replaced my mlocate. absolutely unreal. seems io_uring makes all the difference.
- Sesse__ 6y agoHi, I'm the author of plocate. io_uring is not the primary part of the difference; it makes for a pretty good win if you have rotating disks (especially when you have many matches to test), but on SSD, it's pretty much inconsequential. The biggest difference really comes from the use of an index, as opposed to matching every single candidate against the pattern.