Matthew Rothenberg
dc30e9f64d
speedup bash completion loading suggestion in docs
...
The current suggestion for users shells out to `brew --prefix` three separate times, which has a non-zero overhead (as per quick benchmark below, approx 20ms per invocation). By making a minor change, the first invocation can be stored in a local variable to reduce shell startup time.
```
$ hyperfine --warmup=3 'brew --prefix'
Benchmark #1 : brew --prefix
Time (mean ± σ): 21.3 ms ± 1.5 ms [User: 8.8 ms, System: 10.6 ms]
Range (min … max): 20.3 ms … 37.0 ms 128 runs
```
2019-05-07 12:36:02 -04:00
..
2018-05-02 17:57:32 +01:00
2019-03-12 20:13:38 +00:00
2019-03-12 20:13:38 +00:00
2019-04-15 18:58:18 +10:00
2018-10-05 17:23:22 -04:00
2018-10-05 17:23:22 -04:00
2018-10-04 15:37:02 +01:00
2019-03-23 13:14:31 +00:00
2018-10-05 17:23:22 -04:00
2019-01-08 19:13:46 +00:00
2017-10-22 05:31:53 +01:00
2019-01-21 14:31:41 +00:00
2019-01-27 12:27:47 +00:00
2019-01-08 19:13:46 +00:00
2019-04-01 15:53:39 -05:00
2019-01-23 21:57:40 +00:00
2019-03-28 21:15:50 +00:00
2018-10-04 15:37:01 +01:00
2019-05-02 05:20:20 +00:00
2019-01-27 12:27:47 +00:00
2018-10-05 17:23:22 -04:00
2019-02-18 16:26:34 +00:00
2019-04-05 10:14:40 -07:00
2018-10-05 17:23:22 -04:00
2019-01-27 16:11:02 -08:00
2018-10-01 16:01:27 -04:00
2019-03-12 20:13:38 +00:00
2019-02-28 10:07:01 -05:00
2018-10-03 21:21:05 +00:00
2019-02-15 10:54:30 +00:00
2018-09-06 15:07:00 +01:00
2019-05-07 08:33:44 +01:00
2018-01-01 09:33:43 +00:00
2019-02-15 10:54:30 +00:00
2018-10-05 17:23:22 -04:00
2019-03-28 21:15:50 +00:00
2019-01-27 12:27:47 +00:00
2019-01-30 21:39:56 +00:00
2018-10-04 15:37:01 +01:00
2019-03-12 20:13:38 +00:00
2019-03-03 15:38:28 +11:00
2017-03-25 22:53:33 -04:00
2017-07-02 15:09:26 +01:00
2019-05-07 12:36:02 -04:00
2018-10-05 17:23:22 -04:00
2019-01-08 19:13:46 +00:00
2019-03-12 20:13:38 +00:00
2018-10-05 17:23:22 -04:00
2018-10-05 17:23:22 -04:00