I have two dictionary objects
I am trying to intersect DictA from DictB by their values and return a 3rd dictionary with the results
I am able to do this however this only produces a list of ints
var results = DictA.Values.Intersect(DictB.Values);
This method is wayyy to slow
var results = DictA.Where(x => DictB.ContainsValue(x.Value)).ToDictionary(x => x.Key, x => x.Value);
Performance is key. Each dictionary holds several million records.
How can I achieve intersecting 2 dictionaries, yielding a 3rd dictionary?