Skip to content

Conversation

@DrMichaelPetter
Copy link
Collaborator

following #1625 , we can optimize the sparse affeq join even more: During join, we have several occasions where our implementation insists on accessing vectors via nth. By cleverly rewriting the the procedure for disjunction of linear equalities, we can get rid of the harmful instances of this, hopefully making affine equalities an even more viable domain.

@DrMichaelPetter DrMichaelPetter self-assigned this Jul 1, 2025
@DrMichaelPetter DrMichaelPetter added in progress performance Analysis time, memory usage relational Relational analyses (Apron, affeq, lin2var) labels Jul 1, 2025
@DrMichaelPetter
Copy link
Collaborator Author

Next step is the evaluation, whether the changes are sound, and how much this impacts the performance, by running this on SVCOMP.

@DrMichaelPetter
Copy link
Collaborator Author

First tests look rather promising - next up is the svcomp run.
optimizedaffeq
here, the left affeq column is this PR's numbers, the right column is the master's affeq numbers

@DrMichaelPetter
Copy link
Collaborator Author

SV Comp shows no wrong verdicts, this is looking good.

Copy link
Member

@michael-schwarz michael-schwarz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did not really investigate the algorithm, but just left some code style remarks.

@DrMichaelPetter DrMichaelPetter merged commit 498424f into master Jul 8, 2025
19 checks passed
@DrMichaelPetter DrMichaelPetter deleted the optimize_sparse_affeq_lindisjunc branch July 8, 2025 13:33
sim642 added a commit that referenced this pull request Jul 8, 2025
sim642 added a commit that referenced this pull request Jul 8, 2025
@sim642 sim642 added this to the v2.6.0 Awkward Aardvark milestone Sep 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

performance Analysis time, memory usage relational Relational analyses (Apron, affeq, lin2var)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants