Comment on Node.js Best PracticesparentComments−danneu11yExample 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
Comments
Example of Google's Closure Compiler eliminating the memory leak:
http://closure-compiler.appspot.com/home