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

Walter Bright newshound2 at digitalmars.com
Thu Jan 9 01:55:42 PST 2014


On 1/9/2014 1:38 AM, "Ola Fosheim Grøstad" 
<ola.fosheim.grostad+dlang at gmail.com>" wrote:
> 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.

A GC does not prevent such techniques.


More information about the Digitalmars-d mailing list