|
-
Jun 1st, 2011, 10:03 AM
#8
Re: Given a value, find all keys with that value in a dictionary(of key, value)
Right, there are situations where LINQ is going to be superior, but in my understanding of LINQ, this is not going to be one of them. Where LINQ shines is when you are doing a complex operation, but it appears to always be slower if all it is doing is finding item X in a simple collection. There is a chance that it might do as well or better in some cases where you are finding the set of X in a simple collection, but I think not. The only way it would do better in that case is if it has a superior means of creating the List (of T) that it returns. On the other hand, LINQ will do considerably better if there are JOINS or any other complex operation.
My usual boring signature: Nothing
 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|