-
Notifications
You must be signed in to change notification settings - Fork 8
Sum::operator += IsSummationSimplifiable check: getCommonVars -> GCD #632
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
base: main
Are you sure you want to change the base?
Conversation
ce005ce to
6889426
Compare
e9e4ae6 to
8758cf8
Compare
820d8f4 to
e1506dd
Compare
| @@ -805,68 +805,24 @@ namespace | |||
|
|
|||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything looks good! The PR simplifies the Sum::operator+= method by removing complex optimization logic and replacing it with a more streamlined approach. This is a good improvement in code maintainability.
8eb7e8b to
96c571a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything looks good! The PR simplifies the Sum::operator+= method by removing complex optimization logic and replacing it with a more streamlined approach. This is a good improvement in code maintainability.
7470a73 to
338f56b
Compare
|
Everything looks good! The PR simplifies the Sum::operator+= method by removing complex optimization logic and replacing it with a more streamlined approach. This is a good improvement in code maintainability. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything looks good! The PR simplifies the Sum::operator+= method by removing complex optimization logic and replacing it with a more streamlined approach. This is a good improvement in code maintainability.
03e7830 to
2191cc7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything looks good! The PR simplifies the Sum::operator+= method by removing complex optimization logic in favor of a more streamlined approach, which improves code maintainability.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything looks good! The PR simplifies the Sum::operator+= method by removing complex optimization logic in favor of a more streamlined approach, which improves code maintainability.
| } | ||
| auto AddTheValue = [&,this]() -> Valuable& { | ||
| if (add.is_optimized()) | ||
| auto& value = addOptimizedValue ? add : *optimizedValue; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything looks good! The PR simplifies the Sum::operator+= method by removing complex optimization logic in favor of a more streamlined approach, which improves code maintainability.
76ffa47 to
89cb9c6
Compare
| operator+=(add.as<Sum>()); | ||
| } | ||
| else if (optimizations) | ||
| if (optimizations) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything looks good! The PR simplifies the Sum::operator+= method by removing complex optimization logic in favor of a more streamlined approach, which improves code maintainability. The changes maintain the same functionality while making the code more readable and easier to maintain.
No description provided.