Created
December 6, 2009 00:44
-
-
Save aarongustafson/249947 to your computer and use it in GitHub Desktop.
Object and array literals are faster than constructors
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function usingConstructors( string ) | |
{ | |
var a = new Array(), o = new Object(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function usingLiterals ( string ) | |
{ | |
var a = [], o = {}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment