when running topk for k >= 1000 i get this error. of course i can increase the sys.setrecursionlimit but up to a point also the topk uses heap which slows down dramatically. using List as for frequent is x5 faster
when running topk for k >= 1000 i get this error.
of course i can increase the sys.setrecursionlimit but up to a point
also the topk uses heap which slows down dramatically. using List as for frequent is x5 faster