Skip to content

Commit 58d6369

Browse files
committed
made UNION faster by not preventing duplicates
1 parent 1cce4fd commit 58d6369

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

rdflib/plugins/sparql/evaluate.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,13 +112,10 @@ def evalJoin(ctx, join):
112112

113113

114114
def evalUnion(ctx, union):
115-
res = set()
116115
for x in evalPart(ctx, union.p1):
117-
res.add(x)
118116
yield x
119117
for x in evalPart(ctx, union.p2):
120-
if x not in res:
121-
yield x
118+
yield x
122119

123120

124121
def evalMinus(ctx, minus):

0 commit comments

Comments
 (0)