Skip to content

Conversation

JukkaL
Copy link
Collaborator

@JukkaL JukkaL commented Jun 21, 2025

This speeds up self check by about 1.5% on my computer, according to perf_compare.py:

... === Results === master 4.264s (0.0%) | stdev 0.024s HEAD 4.201s (-1.5%) | stdev 0.030s 

I noticed this bottleneck when I was looking at a CPU profile generated using the script from #19322.

Copy link
Contributor

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

@JukkaL JukkaL merged commit be11ab8 into master Jun 21, 2025
19 checks passed
@JukkaL JukkaL deleted the optimize-arg-infer-ctx branch June 21, 2025 18:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants