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

Fixed auto-scheduler for recursive rules using Selinger w/ vector #2258

Merged
merged 1 commit into from
Apr 6, 2022

Conversation

SamArch27
Copy link
Collaborator

Before we used a heuristic of the average size of a recursive relation across iterations (say for delta relations).

Now we replace this by propagating a vector of costs/tuples throughout Selinger's algorithm.

This gets us the cost-optimal schedule for recursive rules.

@codecov
Copy link

codecov bot commented Apr 6, 2022

Codecov Report

Merging #2258 (418a194) into master (97d74ca) will increase coverage by 0.05%.
The diff coverage is 86.56%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2258      +/-   ##
==========================================
+ Coverage   75.09%   75.15%   +0.05%     
==========================================
  Files         455      455              
  Lines       28443    28465      +22     
==========================================
+ Hits        21360    21392      +32     
+ Misses       7083     7073      -10     
Impacted Files Coverage Δ
src/ast/analysis/ProfileUse.h 100.00% <ø> (ø)
src/ast/utility/SipsMetric.h 20.00% <ø> (-13.34%) ⬇️
src/main.cpp 68.29% <80.00%> (+0.96%) ⬆️
src/ast/utility/SipsMetric.cpp 53.95% <86.00%> (+2.56%) ⬆️
src/include/souffle/profile/Reader.h 90.12% <87.50%> (-0.35%) ⬇️
src/ast/analysis/ProfileUse.cpp 59.09% <100.00%> (+4.09%) ⬆️
src/include/souffle/datastructure/BTree.h 97.05% <0.00%> (+0.42%) ⬆️
src/include/souffle/profile/ProfileEvent.h 97.95% <0.00%> (+5.10%) ⬆️

Copy link
Member

@b-scholz b-scholz left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution!

@b-scholz b-scholz merged commit 3eb8e19 into souffle-lang:master Apr 6, 2022
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