-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…at may actually get called for the argument tuple
- Loading branch information
Showing
2 changed files
with
39 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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 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
847a6fa
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.
REALLY not sure about this. I find that this does indeed prevent inlining in some cases by returning >1 item from
_methods
when only 1 method matches. Affects thecons
perf test most of all.Maybe a better implementation is to merge all results for a single method by unioning the types and environments together (nontrivial, but not too bad).
847a6fa
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 prefer correctness over speed for the upcoming release.
It could be good to union the environments, but that all becomes irrelevant if my union types call specialization inlining is merged. It would still be useful then (to generate fewer call sites), but might require a different approach to using the information.
847a6fa
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.
The concept here is extremely simple. You have inferred argument types that encompass all possible run--time types. This is intersected with a method signature, and you get a type back. There is no bug in that concept.