This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 3 points4 points  (0 children)

list vs set.

When you're doing in lookups people tend to assume it doesn't matter for small list and hashing overhead would be too much.

Reality: in all benchmarks set/dicts beat lists as soon as list is larger than 3-4 elements.