Filter to possible package paths before trying to resolve a module. by falsedrow · Pull Request #18038 · python/mypy (original) (raw)
Okay, I benchmarked ac79825 as the following on mypy -c 'import torch'
(see #17948 for description of the environments):
- 1.09x faster in long environment
- 1.06x faster in openai environment
- 1.42x faster in long environment (incremental)
- 1.22x faster in openai environment (incremental)
I'll check the extra normpath
is slowing us down, if so should be very easy to save (update: looks like this might be a few 100ms, so a couple more percent)
Doing this also uncovered a minor regression from #15347 , which I shall try to fix... (update: I think best done in a new PR)