Skip to content

Instantly share code, notes, and snippets.

@jakearchibald
Created August 21, 2009 15:15
Show Gist options
  • Save jakearchibald/172088 to your computer and use it in GitHub Desktop.
Save jakearchibald/172088 to your computer and use it in GitHub Desktop.
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