Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Optimize CallableType.formal_arguments - #11543

Merged
JukkaL merged 2 commits into
masterfrom
optimize-formal-args
Nov 13, 2021
Merged

Optimize CallableType.formal_arguments#11543
JukkaL merged 2 commits into
masterfrom
optimize-formal-args

Conversation

@JukkaL

@JukkaL JukkaL commented Nov 13, 2021

Copy link
Copy Markdown
Collaborator

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

JukkaL commented Nov 13, 2021

Copy link
Copy Markdown
Collaborator Author

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