Skip to content

Optimization: Remove expensive context manager in type analyzer#14357

Merged
JukkaL merged 1 commit intomasterfrom
faster-type-anal
Dec 28, 2022
Merged

Optimization: Remove expensive context manager in type analyzer#14357
JukkaL merged 1 commit intomasterfrom
faster-type-anal

Conversation

@JukkaL
Copy link
Copy Markdown
Collaborator

@JukkaL JukkaL commented Dec 28, 2022

This makes mypy a bit faster and the implementation seems a little cleaner as well.

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

This makes mypy a bit faster and the implementation seems a little cleaner as well.

(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 45bed9c into master Dec 28, 2022
@JukkaL JukkaL deleted the faster-type-anal branch December 28, 2022 14:23
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