News for hackers. Stuff that matters.
Re:Node.js Best Practices by danneu on Sunday September 21, 2014 @04:06AM (#8346629)
Example of Google's Closure Compiler eliminating the memory leak:

    var theThing = null; 

    function replaceThing() {
      theThing = {
        longStr: Array(1E6).join("*"),
        someMethod: function() { }
      }; 
    } 

    setInterval(replaceThing, 1E3);
http://closure-compiler.appspot.com/home

There are no comments on this comment yet.