fd/src
sharkdp d43827fe57 Add --max-results=<count> option
This new option can be used instead of piping to `head -n <count>` for
improved performance:

| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|:---|---:|---:|---:|---:|
| `fd --max-buffer-time=0 flow.yaml` | 153.9 ± 2.5 | 151.3 | 170.3 | 4.21 ± 5.86 |
| `fd --max-buffer-time=0 flow.yaml \| head -n 1` | 145.3 ± 17.4 | 111.0 | 180.2 | 3.98 ± 5.55 |
| `fd --max-results=1 flow.yaml` | 36.5 ± 50.8 | 7.2 | 145.7 | 1.00 |

Note: there is a large standard deviation on the last result due to the
non-deterministic file system traversal. With `--max-results`, we don't
have to traverse the whole filesystem tree, so it's all about luck.

closes #472
closes #476
2020-04-02 20:27:41 +02:00
..
exec Add unit tests for merge_exitcodes 2020-02-22 12:32:35 +01:00
fshelper New implementation of broken-symlink handling 2020-02-28 20:42:14 +01:00
internal Add --max-results=<count> option 2020-04-02 20:27:41 +02:00
app.rs Add --max-results=<count> option 2020-04-02 20:27:41 +02:00
exit_codes.rs Add unit tests for merge_exitcodes 2020-02-22 12:32:35 +01:00
main.rs Add --max-results=<count> option 2020-04-02 20:27:41 +02:00
output.rs Use existing Cow pointer 2019-09-15 10:57:27 +02:00
walk.rs Add --max-results=<count> option 2020-04-02 20:27:41 +02:00