Adding Java and C++ to the MQTT benchmarks or: How I Learned to Stop Worrying and Love the Garbage Collector

Ola Fosheim Grøstad" <ola.fosheim.grostad+dlang at gmail.com> Ola Fosheim Grøstad" <ola.fosheim.grostad+dlang at gmail.com>
Thu Jan 9 01:38:29 PST 2014


On Thursday, 9 January 2014 at 09:10:07 UTC, Paulo Pinto wrote:
> I have only seen those things work in small AAA class teams.

But you have probably seen c programs allocate a bunch of 
different small structs with a single malloc where it is known 
that they will be freed in the same location? A compiler needs 
whole program analysis to do the same.

So yes, c programs will have fewer allocs if the programmer cared.


More information about the Digitalmars-d mailing list