-
-
Notifications
You must be signed in to change notification settings - Fork 211
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
Slowdown with build_function output in recent versions #800
Slowdown with build_function output in recent versions #800
Comments
I didn't realize you can't DM on github so I will email the files to you. |
Hi @MarcBerliner could you try out this branch #801 and see if it fixes the regression? Thanks! |
Hi @shashi, I tried that branch but it didn't seem to fix the issue. The f function is about the same, but the g function is even slower because |
@MarcBerliner try setting |
@ChrisRackauckas setting |
In the code you sent me it does use |
Do you mean about the same between v4 and v5? Or that it is about as slow on v5 as before? |
Are you sure you have |
I was using a clone of the ddcba6c repo. I just tried 7d5839d and
It still seems to work for a toy problem though. Here's an example showing it using
Compared to using v5.6.3:
If I'm doing something incorrectly please let me know. |
Did this get cleared up? |
@shashi’s updates last week made a big difference, but I was still seeing like a 50-60% decrease in the generated ODE rhs performance. (With BCR.) |
I recently updated to the latest ModelingToolkit version and I've noticed a pretty sizable slowdown in the in-place result from build_function. One 37-line function that I made is 5x slower and a 148-line function is 20x slower compared to using v4.5.3 (I can DM them to the devs). Much longer functions have a more modest slowdown, but it is still quite noticeable. I believe it's due to the change in syntax in recent versions.
(Apologies if this should be for SymbolicUtils.)
The text was updated successfully, but these errors were encountered: