Re:Find Files (Ff) – File Search Utility in Rust
by setr on Wednesday February 27, 2019 @01:23PM
(#19265576)
tbh find's command line interface is extremely unnatural, and that alone would justify a switch for me. Ofc, there's no reason that the program itself needs to be reimplemented beyond its argument parser, but that's not that concerning for me as long as its still fast enough
Re:Find Files (Ff) – File Search Utility in Rust
by vishaltelangre on Thursday February 28, 2019 @05:22AM
(#19270350)
In ff v0.1.4, the results are dramatically improved.
> ff '.*.js' ~/projects > /dev/null
7.59s user
24.21s system
337% cpu
9.413 total
Re:Find Files (Ff) – File Search Utility in Rust
by vishaltelangre on Wednesday February 27, 2019 @11:54PM
(#19269028)
In ff v0.1.3, the slowness is reduced to some extent.
> ff '.*.js' ~/projects > /dev/null
5.79s user
14.77s system
97% cpu
21.024 total
> find -E ~/projects -type f -regex '.*.js' > /dev/null
3.98s user
10.76s system
67% cpu
21.933 total
Second, the utility already exists, and this version is significantly slower:
But wait! This is a totally unnatural use of find. If we use find like users actually do, we get even better performance: Hardly scientific. But it begs the question: who is this for?