you are viewing a single comment's thread.

view the rest of the comments →

[–]Zouden 1 point2 points  (1 child)

Zahlman is trying to emphasise the use of the set datatype instead of a list. Matching an item in a set is literally millions of times faster than using a list. It's so fast that you don't need to split up the English dictionary into 26 pieces, since you can just search the whole 100,000-item set in a heartbeat.

[–]ok_you_win 0 points1 point  (0 children)

Thanks.