News for hackers. Stuff that matters.
Re:Comparing C and C++ usage and performance with a real wor... by wott on Sunday September 03, 2017 @04:51PM (#15163832)
It is nonsensical to consider memory leaks as reported by Valgrind on a program that uses Glib. It allocates and builds a whole context system and never frees it regularly, which confuses Valgrind. I am pretty certain almost all 'leaks' come from there. libglib should be put in Valgrind suppression file.

It was a very bad choice to choose a program based on Glib for this kind of experiment.

Re:Comparing C and C++ usage and performance with a real wor... by bjconlan on Sunday September 03, 2017 @09:37PM (#15165057)
I think what you have said here sums up the problem quite concisely. They might as well add core-foundation, qt-core and stllib based executables to the test for 'c' vs 'c++' to give a better cross section.