W
WebSnozz
Some collections are such that efficient search algorithms work on them
such as binary search if the collection is a type which is sorted.
I'm wondering how LINQ searches these collections and if it takes
advantage of the fact that some collections are sorted?
We were speculating that the standard .net 2.0 collections might
implement the IQueryable interface for those collections where there
are more efficient search algorithms.
What would seem awful is if it searched through all objects only by
iteration, which would always be a sequential search.
I did try a Google but didn't come up with anything relevant, so please
don't flame me if you found something. Just because my choice of
keywords may have been bad is no reason to get angry.
Thanks.
such as binary search if the collection is a type which is sorted.
I'm wondering how LINQ searches these collections and if it takes
advantage of the fact that some collections are sorted?
We were speculating that the standard .net 2.0 collections might
implement the IQueryable interface for those collections where there
are more efficient search algorithms.
What would seem awful is if it searched through all objects only by
iteration, which would always be a sequential search.
I did try a Google but didn't come up with anything relevant, so please
don't flame me if you found something. Just because my choice of
keywords may have been bad is no reason to get angry.
Thanks.