One Contains Call, 375 Million Comparisons
DEV Community
One Contains Call, 375 Million Comparisons
A membership check that reads like plain English was doing 375 million comparisons for 100,000 lookups. Here is what List.Contains in a loop actually costs, and when a HashSet is not worth the bother.
0 comments
No comments yet.