-
-
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
Implement +(as...) etc. for Array #3223
Comments
It would probably help a bit, but it seems to me |
For the array types that it supports, Anyways, the broadcast machinery does include a limited form of staged functions so that this can be done once for any number of arguments. It shouldn't be so hard to hack together something similar (and simpler) for this case. |
The general case is the kinds of things that @lindahua does in Devectorize.jl. My guess is that every such little optimization over time will add up to significant gains overall. |
I agree with Jeff that A fundamental way to boost these things is lazy evaluation, that is, actual codes are generated only when it sees the entire expression. I think Devectorize.jl can be designed in a better way. I will revisit this when I get time in the summer. |
This should be closed by #17623, since |
Closed by #17623. |
There may be some gains to implementing +(as...) and other similar cases for arrays. This should be faster and also allocate fewer temporaries.
The text was updated successfully, but these errors were encountered: