News for hackers. Stuff that matters.
Re:Why should I have written ZeroMQ in C, not C++ (part II) by qdog on Thursday August 30, 2012 @01:18PM (#4455663)
A relatively new C programmer would probably come up with the C code. From the discussion of this topic it appears the C++ solution needs quite a bit more expertise to get right (I would not have known what exact C++ method to use, but I don't pretend to be a C++ expert at this point).

Hmm, actually I would expect most of the C++ methods not to have a problem with heap fragmentation, if they are copying the list when manipulating. The C one doesn't know when it will alloc a new bit of memory, so you might potentially have a cache miss for every single node in the C list, making traversal the worst case scenario.

There are no comments on this comment yet.