Make is_sub_path faster by hauntsaninja · Pull Request #17962 · python/mypy

@hauntsaninja

See python#17948

Haven't run the benchmark yet, but profile indicates that this could
save 0.5s on both incremental and non-incremental builds in environments
with long search path

@hauntsaninja mentioned this pull request

Oct 16, 2024

@hauntsaninja

@hauntsaninja

@hauntsaninja

JukkaL

@hauntsaninja

hauntsaninja added a commit that referenced this pull request

Oct 20, 2024
See #17948

- 1.01x faster on clean
- 1.06x faster on long
- 1.04x faster on openai
- 1.26x faster on openai incremental