Lol, yeah I get this quoted sometimes merely for suggesting the right data structure to use.
"Use a set instead of a list, it's faster". "that's premature optimization!"
"Use a set instead of a list, it's faster". "that's premature optimization!"
It's fairly easy to remove the set and replace it with something else if this does come up.
Doesn't seem like it'd be the general case though. And it seems like it'd be fairly obvious when something like this applies.