Skip to content

Micro-optimize get_proper_type(s)#14369

Merged
JukkaL merged 1 commit into
masterfrom
faster-proper-types
Dec 29, 2022
Merged

Micro-optimize get_proper_type(s)#14369
JukkaL merged 1 commit into
masterfrom
faster-proper-types

Conversation

@JukkaL

@JukkaL JukkaL commented Dec 29, 2022

Copy link
Copy Markdown
Collaborator

These are used a lot, so it makes sense to tune them a bit. We now avoid allocations in a common case, when compiled.

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

These are used a lot, so it makes sense to tune them a bit. We now
avoid allocations in a common case, when compiled.

(Various small optimizations, including these, 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 52172a3 into master Dec 29, 2022
@JukkaL
JukkaL deleted the faster-proper-types branch December 29, 2022 15:17
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