Results 1 to 40 of 87

Thread: Simple and fast, lightweight HashList-Class (no APIs)

Threaded View

  1. #11
    Fanatic Member
    Join Date
    Mar 2019
    Posts
    515

    Resurrection - performance vs dictionary

    Hi Guys,

    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.

    cheers
    Attached Files Attached Files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width