Skip to content

Instantly share code, notes, and snippets.

View mnahkies's full-sized avatar

Michael Nahkies mnahkies

View GitHub Profile

Keybase proof

I hereby claim:

  • I am mnahkies on github.
  • I am mnahkies (https://keybase.io/mnahkies) on keybase.
  • I have a public key ASCYiUaOEDWBcMV86hIDZDFqPn__oQrxWMyhRy0PFYWZxwo

To claim this, I am signing this object:

@mnahkies
mnahkies / memory-leak-repro.js
Created April 29, 2016 06:07
Memory usage increases seemingly without bound.
function allocateMemory(len) {
var s = "";
for (var i = 0; i < len; i++) {
s += "x";
}
return s.length;
}