Skip to content

Conversation

@hauntsaninja
Copy link
Collaborator

@hauntsaninja hauntsaninja commented Jan 19, 2026

We already use this trick a little, but we can be much more aggressive about it.

Best reviewed with whitespace ignored. If the pure_ renames are undesirable it is easy to remove them, just helped me avoid some incorrect changes.

This is a 4.5% win on compiled self check

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@hauntsaninja hauntsaninja marked this pull request as ready for review January 20, 2026 03:31
@github-actions

This comment has been minimized.

Copy link
Member

@ilevkivskyi ilevkivskyi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh wow, I tried something similar in summer, but didn't see big wins. I guess I simply needed to skip it in more places :-) About the renaming: not huge fan TBH I would prefer to rename those back.

@JukkaL
Copy link
Collaborator

JukkaL commented Jan 26, 2026

@hauntsaninja Is something blocking the merge of this PR? I'd love to have the perf increase!

@hauntsaninja
Copy link
Collaborator Author

No, just needed to undo the pure renames as per Ivan, doing that now...

@github-actions
Copy link
Contributor

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

@hauntsaninja hauntsaninja merged commit f875853 into python:master Jan 26, 2026
37 of 38 checks passed
@hauntsaninja hauntsaninja deleted the skipdiag branch January 26, 2026 21:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants