Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# fastest way to find item in list

If your goal is just to make it very fast to find the
strings in a collection, put them into a HashSet.

HashSet.Contains is an O(1) method, and strings have a
good hash algorithm by default, so it will be difficult
to make a faster routine than this.
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #fastest #find #item #list
ADD COMMENT
Topic
Name
6+1 =