KEMBAR78
Optimize CallableType.formal_arguments by JukkaL · Pull Request #11543 · python/mypy · GitHub
Skip to content

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