Skip to content
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

separate optimize from simplify #870

Merged
merged 1 commit into from
May 1, 2024
Merged

separate optimize from simplify #870

merged 1 commit into from
May 1, 2024

Conversation

gertjanvanzwieten
Copy link
Contributor

@gertjanvanzwieten gertjanvanzwieten commented Apr 26, 2024

This PR limits the deep replacement of Evaluable._optimized_for_numpy1 to
the operations of _optimized_for_numpy, no longer involving _simplified. This
creates a logical separation between simplify and optimized and removes overlap
between the two passes. The latter (.optimized) still implies the former
(.simplified), but executes it strictly in a pre-processing pass, with the
subsequent optimization making only local adjustments to the simplified state.
The _optimized_for_numpy methods are modified to make these adjustments in a
nimble fashion rather than relying on the heavy machinery of _simplified.

@gertjanvanzwieten gertjanvanzwieten force-pushed the optimize branch 2 times, most recently from 862dc08 to 3ba8136 Compare April 26, 2024 10:31
@gertjanvanzwieten gertjanvanzwieten force-pushed the optimize branch 2 times, most recently from 99f8a2a to f05843b Compare April 26, 2024 14:52
This patch limits the deep replacement of Evaluable._optimized_for_numpy1 to
the operations of _optimized_for_numpy, no longer involving _simplified. This
creates a logical separation between simplify and optimized and removes overlap
between the two passes. The latter (.optimized) still implies the former
(.simplified), but executes it strictly in a pre-processing pass, with the
subsequent optimization making only local adjustments to the simplified state.
The _optimized_for_numpy methods are modified to make these adjustments in a
nimble fashion rather than relying on the heavy machinery of _simplified.
@gertjanvanzwieten gertjanvanzwieten merged commit 5c24646 into master May 1, 2024
20 of 21 checks passed
@joostvanzwieten joostvanzwieten deleted the optimize branch February 3, 2025 10:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant