Question: are sets or lists faster?
Answer: 8 Answers. Sets are implemented using hash tables. ... This is also the reason that sets do not preserve the order of the objects you add. Note that sets aren't faster than lists in general -- membership test is faster for sets, and so is removing an element.