I am using itertools to do cartesian products of list of lists.
list of lists :-
[['who','what'],['is','in'],['age','ago']]
Piece of Code:-
from itertools import product
[' '.join(p) for p in product(*temp_suggest_lst)]
I am using this itertools to do cartesian product. Sometimes my each list contains 100000 of values/string then itertools might be slow down.
Is there any tools which build cartesian product very very fast or itertools is the best?