⬅︎ Back to Fastest way to uniqify a list in Python
If you recode the block if marker in seen: continueseen[marker] = 1result.append(item)to if marker not in seen:____seen[marker] = 1____result.append(item)the performance of f5 doubles!
Comment
If you recode the block
if marker in seen: continue
seen[marker] = 1
result.append(item)
to
if marker not in seen:
____seen[marker] = 1
____result.append(item)
the performance of f5 doubles!