less warnings, more good practises
@naugtur, meet.js 04.2014Visitor Recording app started at ~4GB RAM, went to ~200MB
destroy
methods everywhereSome constructive tips
destroy()
stuff once you stop using itFrameworks help, but it's easy to do yourself too.
If you keep a reference to a node, removing any of its parents will create a detached DOM tree.
Destroy old instances before you create new.
That's good enough.
delete
to free memorynode --expose-gc app.js
chrome --js-flags="--expose-gc"
global.gc();
window.gc();
alert()