Commit d3be43d
authored
Speed up SCC dependency inference (#18299)
Avoid redundant computation of `frozenset(scc)`.
This helps with incremental type checking of torch, since it has a big
SCC. In my measurements this speeds up incremental checking of `-c
"import torch"` by about 11%.1 parent be87d3d commit d3be43d
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
61 | 65 | | |
62 | 66 | | |
63 | 67 | | |
| |||
0 commit comments