Commit 2cd7911
committed
speedup: load inquirer only when needed
around 80ms improve on my machine
$ avg_time 10 node ./bin/h1 --compbash --compgen _ _ "h1 "
real 0.444000
user 0.443000
sys 0.070000
$ avg_time 10 node ./bin/h1 --compbash --compgen _ _ "h1 "
real 0.367000
user 0.350000
sys 0.0520001 parent 26c46f2 commit 2cd7911
1 file changed
Lines changed: 3 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
| |||
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
21 | | - | |
| 20 | + | |
22 | 21 | | |
23 | 22 | | |
24 | 23 | | |
| |||
30 | 29 | | |
31 | 30 | | |
32 | 31 | | |
33 | | - | |
| 32 | + | |
34 | 33 | | |
35 | 34 | | |
36 | 35 | | |
| |||
41 | 40 | | |
42 | 41 | | |
43 | 42 | | |
44 | | - | |
| 43 | + | |
45 | 44 | | |
0 commit comments