Re:Memory Allocators 101
by seanmcdirmid on Thursday May 16, 2013 @11:31PM
(#5722551)
I am sort of horrified by a garbage collected VM that uses small malloc/free calls to manage memory. I also can't believe the linked article doesn't mention what VM the node.js code was running on.
Edit: reading more of the linked articles, these benchmarks seem to be running on V8? Which seems to be the only platform that node.js runs on...facepalm. Still confused why V8 would be using standard malloc/free calls.
malloc doesn't have to suck: http://www.cs.umass.edu/%7Eemery/pubs/berger-oopsla2002.pdf
Re:Memory Allocators 101
by JoachimSchipper on Saturday May 18, 2013 @01:33PM
(#5729637)
If you mean "lea malloc is pretty fast", ok; but going to regions, while an enormous win in some cases, is moving the goalpoints.
(Still, thanks for posting the paper - the reaps concept is very nice. I did expect regions to win by more than they did, though. Oh well.)
[1] http://dtrace.org/blogs/rm/2012/07/16/per-thread-caching-in-...