Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Recent fix introduced serious performance degradation in Datalog computation #4874

Closed
bertram-gil opened this issue Dec 8, 2020 · 0 comments

Comments

@bertram-gil
Copy link

I think the commit 430b4ea that fixed a recent bug in datalog computation (#4870), has introduced a serious performance issue.
Consider the following program:

Z 64

in1(A:Z, B:Z) input
in2(A:Z, B:Z) input
KK(A:Z, B:Z)
OS(A:Z)
out(A:Z) printtuples

in1(23, 7).
in1(46, 41).
in1(7, 42).
in1(36, 15).
in2(45, 39).
in2(36, 14).
in2(17, 38).

KK(y,j) :- in2(YZD,j), in2(y,UyW).
OS(v) :- KK(v,Q), KK(A,Q), KK(B,Q).  
out(y) :- OS(y), OS(y). 

When i run this program with 7089610, I get the result in 5 milliseconds:

Tuples in out: 
        (A=45(7))
        (A=36(5))
        (A=17(10))
Time: 5ms
Parsing: 1ms, other: 3ms

However, if i run this program with the latest commit (c49d39a), I don't get a result even after 3 minutes of waiting.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant