My recommendation: don't use HybridDictionary at all unless there's a specific need for it. The recommended usage for HybridDictionary (vs a normal Dictionary) is when the collection will be small most of the time (again, <10 items as per the current implementation), but there's a possibility that it'll grow large.Īs in usage (compared to ListDictionary or HashTable), since Dictionary uses generics), there's no difference, it's just a performance thing. It's in general more performant than a Dictionary (at least when there are less than 10 items, otherwise it should be almost identical), however there's a hit when the collection changes from List to Hashtable (when you go over 10 items the list has to be copied to the hashtable). HybridDictionary uses a ListDictionary when the set is small and a Hashtable when the set is large.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |