-
Notifications
You must be signed in to change notification settings - Fork 1.8k
[ty] Break mandatory salsa cycle when inferring function definitions #21813
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
Closed
Closed
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
291e07d
break the cycle
dcreager d333a9b
update the generic context too
dcreager abf8307
handle PEP-484 params as a follow-on step
dcreager 6ce5859
build up params while inferring
dcreager 1595040
collect defaults during inference
dcreager dacaa37
store params and defaults
dcreager 928026f
store return type too
dcreager 2f00ce8
store this better
dcreager 919941f
type-params is a scope, not a definition
dcreager e454e35
don't store this
dcreager bdf1563
helper struct
dcreager 96d77e3
pass in params when possible
dcreager ee68251
break recursion cycle
dcreager a455a07
use bottom as fallback
dcreager 2428c29
Merge remote-tracking branch 'origin/main' into dcreager/break-the-cycle
dcreager 048cf41
Revert "break recursion cycle"
dcreager b3520b3
update non-cached signatures too
dcreager 5ce69d3
update paramspec tests
dcreager 36e3b2f
param `nested` should match return type `nested`
dcreager d2fae5c
update cycle tests
dcreager d30cb13
fix tests again
dcreager 2d47257
clippy
dcreager 16cafbc
Remove assertion about valid place node to always be present in place…
dhruvmanila 0fd5172
Merge branch 'main' into dcreager/break-the-cycle
dhruvmanila File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suspect that this is one of the main reasons for the memory increase and slowdown. The idea of extra is that we only create it in rare instances. However, assuming I understand your change correctly, we now create an extra for every function definition of which there are many.
Could we maybe use a type inference context instead?