3 ms·
This goes for pretty much every C++ program. I doubt there are any useful programs for which the GNU allocator is optimal.
by jeffbee 4y ago
This goes for pretty much every C++ program. I doubt there are any useful programs for which the GNU allocator is optimal.
- dikei 4y agoFor databases maybe. However, most programs do not need to allocate so much memory, so frequently that an allocator become an issue.
- citrin_ru 4y agoglobc malloc works reasonably well if threads are not used (nginx and postgres are examples of apps which don’t rely on threads), but if an app uses many threads on multi core CPU shortcomings of glibc malloc (or advantages of jemalloc) become more obvious, especially if you use some LTS Linux distro with an old glibc.