Significantly speed up file handling error paths by hauntsaninja · Pull Request #17920 · python/mypy

@hauntsaninja

I'm probably measuring wrong, but I think I got a 1.5x speed up on
the following when running compiled:
```
mypy -c 'import torch' --no-incremental
```

@hauntsaninja changed the title Significantly speed up file handling paths??? Significantly speed up file handling paths

Oct 11, 2024

@hauntsaninja hauntsaninja changed the title Significantly speed up file handling paths Significantly speed up file handling paths (when compiled)

Oct 11, 2024

@hauntsaninja hauntsaninja changed the title Significantly speed up file handling paths (when compiled) Significantly speed up file handling error paths (when compiled)

Oct 11, 2024

@hauntsaninja hauntsaninja changed the title Significantly speed up file handling error paths (when compiled) Significantly speed up file handling error paths

Oct 11, 2024

This was referenced

Oct 15, 2024

hauntsaninja added a commit that referenced this pull request

Oct 20, 2024
This can have a huge overall impact on mypy performance when search paths are long