Javascript Objects and JScript Dictionary are both associative Arrays
obj = new Object ;
dic = new ActiveXObject("Scripting.Dictionary") ;
My question is… Is there any difference between them in terms of efficiency (either space or time) ??
In terms of functionality, I know a Dictionary is better because it allows more than just scalar types as keys. But putting that aside, which one is better/faster?
EDIT:
This is for Windows scripting, not for web development.
EDIT2:
I’m particularly interested in the lookup efficiency, since I’ll need to work with big collections.
It appears from this document that the lookup is quicker using Dictionary; however the inserts are slower.
https://web.archive.org/web/20181223064604/http://www.4guysfromrolla.com:80/webtech/100800-1.2.shtml