-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Constructor with trivial assert much slower than without #21323
Comments
Yes, keep the issues coming! :) Always better to know about a possible problem. |
In |
Another thing happening here: the constructor is being specialized for Internally, we should be able to handle this by speculatively inlining the matching identity conversion method, along with the needed type assertion. |
prompted by #21323 This removes the special case for the first field.
This is probably the same dispatch performance issue as #21370, except for |
looks fixed to me. |
This code takes ~2μs
It's 200X slower than the same code with
Myo{Int}(2)
if
if
with the equivalentif 2 != 2 throw(...) end
Meta-question: I know compiler code is full of heuristics, so is it useful to the Julia team to file an issue like this?
The text was updated successfully, but these errors were encountered: