Skip to content

Reverted some "cleaning up" of the analyser. #1305

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

Closed
wants to merge 1 commit into from

Conversation

agarny
Copy link
Contributor

@agarny agarny commented Dec 5, 2024

Effectively reverting 4357d2b. Indeed, the code is less efficient: there are more if statements and we make many calls (~94% of the time) to AnalyserEquationAst::swapLeftAndRightChildren(). Also, if we were to do that cleaning up then we also need to clean in the case of a piecewise statement.

Effectively reverting 4357d2b. Indeed, the code is less efficient: there are more `if` statements and we make many calls (~94% of the time) to AnalyserEquationAst::swapLeftAndRightChildren(). Also, if we were to do that cleaning up then we also need to clean in the case of a piecewise statement.
@agarny
Copy link
Contributor Author

agarny commented May 14, 2025

Closing since this is likely never going to be approved, even though that original "cleaning" is pointless, less efficient, and incomplete (since not done for piecewise statements), not to mention that I have other PRs that need to be merged in.

@agarny agarny closed this May 14, 2025
@agarny agarny deleted the revert branch May 14, 2025 22:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants