Re: [nodejs] garbage collection

2017-10-03 Thread Axel Kittenberger
I don't get it what you want to achive, but if you want to remove enormous amounts of memory data on a whimp, simply wrap them as native around a Wrapper, provide a getter/setter function and return undefined, if it has been freed. The node native interface has examples of wrapper objects. You

Re: [nodejs] garbage collection

2017-09-28 Thread Alan Hoffmeister
Nope. -- Alan Hoffmeister https://twitter.com/alan_hoff https://github.com/alanhoff https://keybase.io/alanhoff 2017-09-28 12:29 GMT-03:00 Omagho : > hello everyone, is it possible to delete a javascript object from memory > without waiting/forcing the garbage collector

Re: [nodejs] garbage collection, patterns: classical/prototypal inheritance and ValueObject

2012-03-10 Thread Marcel Laverdet
If you can write it in JS, v8 can garbage collect it. On Sat, Mar 10, 2012 at 2:46 PM, Phoscur phos...@pheelgood.net wrote: Short Question: Do V8 and Jägermonkey garbage collect prototype chains at some point? Let code speak: https://gist.github.com/e83c353f7f16e14e4333 Actually, while

Re: [nodejs] garbage collection, patterns: classical/prototypal inheritance and ValueObject

2012-03-10 Thread Phoscur
Considering that a long chain of prototypes is created. Interact 1times with a ValueObject, the prototype chain stores 1 getter closures. If the last one is kept is basically stores all older states in it's prototype chain. Is the garbage collection going to clean those closures up at same