Posts Tagged Lists

Fastest way to remove items from a List with thousands of items

Let’s say you have a list of 200,000 strings, and you need to remove 20,000 strings in a non-sequential order. You would probably loop through the list of items to remove each item from the original list: // Create a list with thousands of items List<string> originalList = new List<string>(); for (int a = 0; [...]

Read more →