Many times, we need to use the Collection structure in the program, which can easily use Key to retrieve sets of variables
It turned out that I have been using VB to bring-to-place Collection. I found that the regular expression in the reference in VBScript is recently found.
There is a COLLECTION structure: scripting.dictionary, reference ms scripting runtime, -> vbscript.dll
He provides a method of retrieving data with key, (but cannot use Index), tested
When ITEM is inserted, its efficiency is 3-4 times that of Collection.
When using Key to retrieve data, its efficiency is 7-8 times the Collection
Different from the characteristics of Collection:
The method of providing Exists can directly detect if Item exists
Allows to assign the already existing Item:
An array of key and item values
I don't know if I don't know if the efficiency of the Collection is improved. You can test it yourself.