Commit 0639988
authored
Cache filename for sorting in
Alternative to #144.
This reduces the duration to glob `**/*.rs` in a rustc checkout on my PC
from ~1000ms to ~820ms:
```
Benchmark 1: ./local
Time (mean ± σ): 822.0 ms ± 11.2 ms [User: 272.5 ms, System: 549.2 ms]
Range (min … max): 811.8 ms … 849.6 ms 10 runs
Benchmark 2: ./upstream
Time (mean ± σ): 1.019 s ± 0.006 s [User: 0.468 s, System: 0.551 s]
Range (min … max): 1.005 s … 1.026 s 10 runs
Summary
./local ran
1.24 ± 0.02 times faster than ./upstream
```fill_todo (#181)1 parent 335da33 commit 0639988
1 file changed
+15
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| 76 | + | |
76 | 77 | | |
77 | 78 | | |
78 | 79 | | |
| |||
945 | 946 | | |
946 | 947 | | |
947 | 948 | | |
948 | | - | |
949 | | - | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
950 | 957 | | |
951 | | - | |
| 958 | + | |
952 | 959 | | |
953 | | - | |
| 960 | + | |
954 | 961 | | |
955 | 962 | | |
956 | | - | |
| 963 | + | |
957 | 964 | | |
958 | 965 | | |
959 | 966 | | |
960 | 967 | | |
961 | | - | |
962 | | - | |
| 968 | + | |
963 | 969 | | |
964 | | - | |
965 | | - | |
| 970 | + | |
| 971 | + | |
966 | 972 | | |
967 | 973 | | |
968 | 974 | | |
| |||
0 commit comments