2 ms·
No malloc optimization can eliminate the waste of re-initializing an object from scratch. The fastest caching will be caching of almost-ready-to-go objects that
by kazinator 9y ago
No malloc optimization can eliminate the waste of re-initializing an object from scratch. The fastest caching will be caching of almost-ready-to-go objects that don't require allocation and initialization from scratch. No malloc can provide that while sticking with malloc semantics.