|
-
January 21st, 2010, 12:12 PM
#1
Associative Array / Hash Table?
I need an array or list or hash table that will allow me to have keys that are not unique, for example:
"table_name1", "error in field name"
"table_name2", "error in field address"
"table_name2", "error in field zipcode"
"table_name2", "error in field other"
etc.. there will be multiple keys but they could have the same names. Another issue is I could be storing up to 1,000,000+ elements so performance is an issue. Any ideas what data structure I can use?
-
January 21st, 2010, 12:16 PM
#2
Re: Associative Array / Hash Table?
Hi,
Are the values unique? Perhaps you can switch the mapping. Any collection that doesn't support unique keys is unlikely to give a performance as good as the hash table or generic dictionary.
-
January 21st, 2010, 12:18 PM
#3
Re: Associative Array / Hash Table?
The values will be unique yes, I never thought about switching the mapping, that's a good idea.
-
January 21st, 2010, 12:37 PM
#4
Re: Associative Array / Hash Table?
NameValueCollection<T> I think handles multiple KVP's with the same Key, but different values.
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
|