Optimize object iteration using Object.keys where faster than for-in loops.

Former-commit-id: 8826f75cf6eaf4233758684e3aae2ccdc3c9f262
This commit is contained in:
John-David Dalton
2012-07-08 01:55:33 -04:00
parent 6d217fc097
commit 04d4353c0f
2 changed files with 43 additions and 13 deletions

View File

@@ -23,11 +23,15 @@
'iteratorBind',
'length',
'methodName',
'nativeKeys',
'noaccum',
'object',
'objectTypes',
'prop',
'propIndex',
'props',
'property',
'propertyIsEnumerable',
'result',
'skipProto',
'slice',
@@ -59,7 +63,8 @@
'objectBranch',
'shadowed',
'top',
'useHas'
'useHas',
'useNativeKeys'
];
/** Used to minify variables and string values to a single character */
@@ -74,6 +79,7 @@
'all',
'amd',
'any',
'attachEvent',
'bind',
'bindAll',
'chain',