2 ms·
malloc is bad api in general, if you want to go fast you don't rely on general purpose allocator
by Cloudef 1y ago
malloc is bad api in general, if you want to go fast you don't rely on general purpose allocator
- const_cast 1y agoThis is true, but the unfortunate thing with how C and C++ were developed is that pretty much everything just assumes the existence of malloc/free. So if you’re using third-party libraries then it’s out of your control mostly. Linking a new allocator is a very easy and pretty much free way to improve performance.