Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

"Concerning fd's speed, the main credit goes to the regex and ignore crates that are also used in ripgrep"


Yes. For simple searches, the main reason is that 'fd' walks the directory tree in a multithreaded fashion (thanks to the 'ignore' crate).


Interesting. Why does multithreading make a big difference? I would have assumed that disk seek latency was the speed-limiting factor; what am I missing?


I believe the comparative benchmarks are done with the os file caches already primed.


Should have been more clear heh. There was a benchmark that didn't use regex and seemed to turn off the ignore files feature. Im not familiar with rust or those crates Im assuming that's what those are there for?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: