Skip to content

Some semantic analyzer micro-optimizations#14367

Merged
JukkaL merged 1 commit intomasterfrom
faster-semanal
Dec 29, 2022
Merged

Some semantic analyzer micro-optimizations#14367
JukkaL merged 1 commit intomasterfrom
faster-semanal

Conversation

@JukkaL
Copy link
Copy Markdown
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
Copy Markdown
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