Created
August 21, 2009 15:15
-
-
Save jakearchibald/172088 to your computer and use it in GitHub Desktop.
This file contains 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
var functions = [], | |
functionsLen = 0; | |
function buildMassiveString() { | |
// build a ~1mb string | |
return new Array(1024*1024).join('#'); | |
} | |
function addListener() { | |
var massiveString = buildMassiveString(); | |
functions[ functionsLen++ ] = function() {}; | |
} | |
setInterval(addListener, 100); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment