I have a List with 100k elements. I want to remove all elements from list that contain one of the strings from another List. I use RemoveAll which is quite slow, so wondering if there is a better solution.
public static void RemoveElements(List<string> input, List<string> items)
{
foreach(var item in items)
{
input.RemoveAll(x => x.Contains(item));
}
}