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

Optimize CallableType.formal_arguments #11543

Merged
merged 2 commits into from
Nov 13, 2021
Merged

Optimize CallableType.formal_arguments #11543

merged 2 commits into from
Nov 13, 2021

Conversation

JukkaL
Copy link
Collaborator

@JukkaL JukkaL commented Nov 13, 2021

Don't use a generator, since they tend to be slow when compiled.

This method came up as a hot spot when profiling compiled mypy.

Don't use a generator, since they tend to be slow when compiled.
@JukkaL JukkaL merged commit 639f272 into master Nov 13, 2021
@JukkaL JukkaL deleted the optimize-formal-args branch November 13, 2021 12:49
@JukkaL
Copy link
Collaborator Author

JukkaL commented Nov 13, 2021

Related to #11547.

MarkCBell added a commit to MarkCBell/mypy that referenced this pull request Dec 29, 2021
PR python#11543 changed the `formal_arguments` method to return a list of formal arguments instead of yielding them. However the docstring was not updated at the time to reflect this.
JelleZijlstra pushed a commit that referenced this pull request Jan 9, 2022
PR #11543 changed the `formal_arguments` method to return a list of formal arguments instead of yielding them. However the docstring was not updated at the time to reflect this.
tushar-deepsource pushed a commit to DeepSourceCorp/mypy that referenced this pull request Jan 20, 2022
Don't use a generator, since they tend to be slow when compiled.

This method came up as a hot spot when profiling compiled mypy.
tushar-deepsource pushed a commit to DeepSourceCorp/mypy that referenced this pull request Jan 20, 2022
PR python#11543 changed the `formal_arguments` method to return a list of formal arguments instead of yielding them. However the docstring was not updated at the time to reflect this.
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.

1 participant