judge = [[0,3,5], [1,2,4], [1,5,6], [],..., []]
a = [[1,2], [2,3,4,5,7,9], [1,4,5], [],..., []]
# len(judge) == len(a)
res_intersect = []
for i in range(len(a)):
for j in range(i+1,len(a)):
if len(set(judge[i])&set(judge[j])) != 0:
res_intersect.append(set(a[i])&set(a[j]))
a and judge have the same lenth, and both far greater than 10000. I need to do this operations with different a and judge Hundreds of times, while i find numba cannot support set(), how to accelerate this? Thanks in advance!