Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some semantic analyzer micro-optimizations #14367

Merged
merged 1 commit into from
Dec 29, 2022
Merged

Some semantic analyzer micro-optimizations #14367

merged 1 commit into from
Dec 29, 2022

Conversation

JukkaL
Copy link
Collaborator

@JukkaL JukkaL commented Dec 29, 2022

The biggest change is replacing some calls to bound methods with trait method calls, which are faster when compiled.

Also remove an unused argument to TypeVarLikeQuery and make a few misc tweaks.

(Various small optimizations, including these, together netted a 6% performance improvement in self check.)

The biggest change is replacing some calls to bound methods with
trait method calls, which are faster when compiled.

Also remove an unused argument to TypeVarLikeQuery and make a
few misc tweaks.

(Various small optimizations, including this, together netted a 6%
performance improvement in self check.)
@github-actions
Copy link
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@JukkaL JukkaL merged commit 47747f2 into master Dec 29, 2022
@JukkaL JukkaL deleted the faster-semanal branch December 29, 2022 13:41
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.

2 participants