Commit 815b679
committed
dependencies: avoid canonicalization for missing files
Checks whether a file exists before canonicalizing. This is a significant speed
up because canonicalizing walks the path from the root, which is much more
likely to spend time randomly stat'ing files that end up not being relevant.
This more than doubles (!) the speed of the program on my machine.1 parent c07e3eb commit 815b679
1 file changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
18 | 23 | | |
19 | 24 | | |
20 | 25 | | |
| |||
0 commit comments