-
Notifications
You must be signed in to change notification settings - Fork 41
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
Allow a Tuple{typeof(f),...}
as root of ascend tree
#588
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #588 +/- ##
======================================
Coverage 0.00% 0.00%
======================================
Files 9 9
Lines 1556 1574 +18
======================================
- Misses 1556 1574 +18 ☔ View full report in Codecov by Sentry. |
I've been using this for a couple of hours and it's been great, so I think it's baked well enough to release. |
for (a, b) in zip(info.argtyps, tt.parameters[2:end]) | ||
a === b || return false |
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.
When iterating over a zip
created from a Vector{Any}
, objects of type Tuple{<:Any,<:Any}
are created, which can sometimes lead to unnecessary specializations, especially when the vector contains Type
objects.
Since we're only using ===
, it shouldn't be a problem for this case, but it's something to be mindful of when working on Core.Compiler
and other external abstract interpreters in the future.
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.
Yeah, I figured this case would be OK. I was leaning on the "self check" tests too, I admit!
Required for aviatesk/JET.jl#648 (comment)