Speed up stubs suggestions by hauntsaninja · Pull Request #17965 · python/mypy

@hauntsaninja

This is starting to show up on profiles, especially incremental ones

@hauntsaninja mentioned this pull request

Oct 16, 2024

@hauntsaninja

@hauntsaninja

@hauntsaninja

@hauntsaninja

@hauntsaninja

@hauntsaninja

hauntsaninja added a commit that referenced this pull request

Oct 20, 2024
See #17948
This is starting to show up on profiles

- 1.01x faster on clean (below noise)
- 1.02x faster on long
- 1.02x faster on openai
- 1.01x faster on openai incremental

I had a dumb bug that was preventing the optimisation for a while, I'll
see if I can make it even faster. Currently it's a small improvement

We could also get rid of the legacy stuff in mypy 2.0