In some library code, I have a List that can contain 50,000 items or more.
Callers of the library can invoke methods that result in strings being added to the list. Ho
Use HashSet instead of List, then it should scale very well.
HashSet
List