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

pkg - roughly half of generated SAT rules are duplicates when doing pkg upgrade #1505

Open
hselasky opened this issue Nov 23, 2016 · 3 comments

Comments

@hselasky
Copy link
Contributor

Hi,

The following patch sorts the SAT rules and eliminate duplicates before passing onto the SAT solver.

pkg_rule_optimise.diff.zip

--HPS

@tigergao99
Copy link
Contributor

Hello @hselasky , has this patch been PR/merge'd?

@igalic
Copy link

igalic commented Nov 23, 2020

i imagine if this had been submitted as pull-request, it would have been easier.

i can try that tonight…, depending on how much conflicts there are, given that this patch is from four years ago

@vstakhov
Copy link
Member

Yes, exactly! I've just noticed this patch that might have attracted my attention being submitted as a PR.

The problem is that identical rules are not a problem for PicoSAT or any other advanced SAT solver - they use conflicts driven solving algorithm that efficiently either include all duplicates in a conflicts chain or totally exclude non-conflicting clauses. Are there any performance improvements in SAT process after this change?

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

No branches or pull requests

4 participants