Skip to content

Instantly share code, notes, and snippets.

@jakearchibald
Created August 21, 2009 14:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jakearchibald/172042 to your computer and use it in GitHub Desktop.
Save jakearchibald/172042 to your computer and use it in GitHub Desktop.
var functions = [],
functionsLen = 0;
function buildMassiveString() {
return new Array(1024*1024).join('#');
}
function addFunction() {
var massiveString = buildMassiveString();
functions[ functionsLen++ ] = function() {};
}
setInterval(addFunction, 1000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment