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

Exact score based algorithm optimizations #162

Merged
merged 2 commits into from
Dec 7, 2024
Merged

Conversation

mwien
Copy link
Collaborator

@mwien mwien commented Sep 22, 2024

Some fairly free optimizations. I benchmarked briefly for graphs with 16 vertices.

  • avoiding the unnecessary memoizations by calling local_score_ directly: reduces execution time from ~2.5s to ~1.2s (so roughly 1s faster)
  • removing @view which I think can hurt because the submatrix is not contiguous: reduces execution time from ~1.2s to ~1.1s

We should definitely fix the first point (that was just an oversight that these calls are memoized)...

Second point we could benchmark GES on larger graphs first

UPDATE: the @view thing doesn't make a big difference for GES, so I have no big preference whether we keep it

@mschauer
Copy link
Owner

mschauer commented Dec 7, 2024

Merging like it is

@mschauer mschauer merged commit 1335e70 into master Dec 7, 2024
4 checks passed
@mschauer mschauer deleted the exact_optimizations branch December 7, 2024 14:07
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.

2 participants