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 10:23:26 PST 2014


On Thursday, 9 January 2014 at 17:17:53 UTC, Walter Bright wrote:
> GC doesn't even make those techniques harder.
>
> I can't see any merit to the idea that GC makes for excessive 
> allocation.

People do what they are accustomed to and what is easy. Library 
writers are more likely to do allocation for you if they can 
forget about ownership.

I am more likely to use several single object "new" calls in C++, 
and more likely to do a "shared malloc" in C. C++ support RAII, C 
doesn't. "shared malloc" is a cheap version of RAII.


More information about the Digitalmars-d mailing list