← Back to context

Comment by Cloudef

1 day ago

malloc is bad api in general, if you want to go fast you don't rely on general purpose allocator

This 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.