-
Notifications
You must be signed in to change notification settings - Fork 148
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
Version 1.2.6 breaks callbacks #981
Comments
I guess there is an automatic conversion from MVector to SizedVector happening, which should NOT happen. |
I think this should be fine if you change |
Anyway, there is indeed a bug with reshaping, |
Well, with a SizedArray my code is 100 times slower than with an MVector. I mean, my real code, not this toy example. So I think there is a bug that should be fixed. I need to be able to make callbacks using MVectors. |
Just tested it. It works with the newest version if I change MVector to SizedVector, but 100 times slower ... |
I don't recall a single operation that is so much slower for Anyway, your performance problems are not caused by that StaticArrays.jl bug but rather Sundials.jl isn't doing the right thing and it was actually a bug in StaticArrays.jl that caused it to work before. |
Well, with an MVector I have zero memory allocations, and a lot with SizedVector:
|
Can you explain a little bit more what was the bug in StaticArrays and what should be fixed in Sundials? I afraid if I tell the maintainer from Sundials.jl I upgraded StaticArrays, things stopped to work and therefore he should fix Sundials he might think that I am crazy... |
It's hard to tell what can cause that. Maybe there is a method with too narrow type bounds, or maybe with
You can just report that things like |
#982 might be enough to fix your example. |
Thanks for the quick commit! Lets see if it helps... |
In the latest master version the issue is fixed. Shall I leave this open until there is a new release? |
Yes, this is fixed on the master branch so this issue can be closed. |
The following code works with StaticArrays 1.2.5, but fails with 1.2.6 and newer:
Error message:
I tested with Julia 1.6.4 on Ubuntu Linux, but the same problem happens with Julia 1.7
The text was updated successfully, but these errors were encountered: