Skip to content

Draft: Speedup LinExpr #34

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 2 commits into from
Closed

Draft: Speedup LinExpr #34

wants to merge 2 commits into from

Conversation

hedtke
Copy link
Collaborator

@hedtke hedtke commented Jan 7, 2025

Adding multiple variables at once to a linear expression is now faster as we do not allocate new memory for each and every variable individually, but all at once.

This is a draft. In my opinion, the code is a bit ugly

@hedtke hedtke added this to the 2.0.0 milestone Jan 7, 2025
@hedtke hedtke linked an issue Jan 7, 2025 that may be closed by this pull request
@hedtke hedtke marked this pull request as draft January 7, 2025 13:44
@TonyCongqianWang
Copy link

Changing the cxx standard to 20 seems like a big change to me that would require lot's of testing

@hedtke
Copy link
Collaborator Author

hedtke commented Jan 27, 2025

I created an alternative implementation not using spans and not upgrading to C++20. See #36 . I will close this PR

@hedtke hedtke closed this Jan 27, 2025
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.

Accelerate summation of variables
2 participants