-
Notifications
You must be signed in to change notification settings - Fork 8
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
potential performance issue without move_factors_into_sums #224
Comments
This |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I thought
move_factors_into_sums
is aboutx + 2 * sum(...)
to be rewritten asx + sum(2 * ...)
but I didn't expect it to also have the following effect:The line
var"##348" = (MutableArithmetics.operate!!)(*, 2, $(Expr(:escape, :x)))
creates a temporary expression containing the term2x
. This will have quite a bad effect on the performance of JuMP.AffExpr and JuMP.QuadExpr.The text was updated successfully, but these errors were encountered: