On choosing the apt datastructure
-
Hi, I am currently stuck up with an issue as to how to select a data structure for my application. i will have around 16,00000 entities to be stored and one from them has to be retrieved. So i make use of the hashTable class in dotnet. Now i would like to know whether the hash-table has any limitations.
-
Hi, I am currently stuck up with an issue as to how to select a data structure for my application. i will have around 16,00000 entities to be stored and one from them has to be retrieved. So i make use of the hashTable class in dotnet. Now i would like to know whether the hash-table has any limitations.
If the count of entities is dynamic, but can grow up to 1600000 items, you should use the HybridDictionary. It stores the name/value pairs in an very efficient way. This Dictionary uses the ListDictionary for small count of items and switches automatically to Hashtable if the count grows to a large amount of items. (Sorry, i dont know the Limit when this happens) Hope this helps
Der Staat mit der niedrigsten Geburtenrate ist nicht die Bundesrepublik, sondern der Vatikan.