You missed the point
Posted Mar 27, 2008 7:37 UTC (Thu) by
pr1268 (subscriber, #24648)
In reply to:
You missed the point by artem
Parent article:
Striking gold in binutils
Google has written a memory allocator library (to compete with the Glibc 2.3 equivalent, ptmalloc2), in C++.
Now, my understanding of the memory allocator is that this is a library whose run-time efficiency should be unquestioned. This is code that interfaces with the kernel nearly continuously. Accordingly, C++ would not have been my first choice of programming language in which to implement this (I would have chosen C, but don't mind me--I've never written a memory allocator before!).
But, Google's allocator library appears to have improved performance over the incumbent Glibc ptmalloc2 in certain scenarios, according to the graphs near the bottom of that page. And to think this was accomplished with C++ (I'm assuming that the Glibc ptmalloc2 is written in C, but I do ask someone to correct me if I'm wrong).
(
Log in to post comments)