I was hoping to be able to use this as a faster string,string value pair kind of thing than scripting.dictionary so I altered the code to be string,string and for me it is never faster than scripting.dictionary with the data I am using.
The attached zip contains the demo project and a file called connect.log which is a text file containing the data. The project reads the text file and loads the key/values into two arrays.
It then populates both the dictionary and the clsHashList from the array entries.
It can then get each item using the array entry as the key
There are about 8500 items in the connect.log file.
For me (slow dev box) the results are (timed by timegettime)
Dictionay Load 19 ms
Get each dictionary item 19ms
Load Hash 26ms
Get each hash item 33ms
I need to check each key against another dictionary in my production app rather than returning all key/value pairs hence the approach.
What can I do to speed this up if anything? Everybody else in the thread seems to get much better performance vs dictionary.