There are rumors that current Node.js (or, more exactly V8 GC) performs badly when there are lots of JS objects and memory used.
Can You please explain what exatly is the problem - lots of objects or lots of properties on one object (or array)?
Maybe there are some benchmarks, would be interesting to see actual code and numbers.
As far as I know the main problem - lots of properties on one object, not lots of objects itself (although I'm not sure). If so - would be the in-memory graph database (about couple of hundreds of properties on each node at max) a good case?
Also I heard that latest versions of V8 has improved GC and that it solved some parts of this problems - is this true, and when it will be available in Node.js?
--
Job Board: http://jobs.nodejs.org/
Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nod...@googlegroups.com
To unsubscribe from this group, send email to
nodejs+un...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en
2012/7/13 Joran Greef <jo...@ronomon.com>
> nodejs+unsubscribe@googlegroups.com
Node is pretty aggressive at calling IdleNotifications when it is not
actually idle, so you might be even better if you disable that
altogether and just let allocations drive GC.
I use delete varname; anywhere I expect varname to be big, on big iterations, and after doingresponse.end(); I delete both request and response.
To add to this thread, we just noticed an issue where having Idle Notifications was destroying objects prematurely causing a rather confusing issue with the zmq module:
https://github.com/JustinTulloss/zeromq.node/issues/124#issuecomment-7270322