Re:Memory Allocators 101 – Write a simple memory allocator (...
by lasagnaphil on Wednesday October 10, 2018 @02:42AM
(#18182521)
I’ve heard many gamedevs make specialized allocators for some of their code (the most being arena allocators)...
[ Parent
| on HN ]
Re:Memory Allocators 101 – Write a simple memory allocator (...
by 01100011 on Wednesday October 10, 2018 @02:58AM
(#18182594)
It's fairly common to avoid naked malloc()/free() in systems with real-time requirements. Memory pools are a great way to go if you want deterministic behavior and better reliability.
Re:Memory Allocators 101 – Write a simple memory allocator (...
by archi42 on Wednesday October 10, 2018 @03:59AM
(#18182901)
This. If you're going to malloc/free equally sized objects often but randomly, a pool allocator can be a great improvement.
With real time requirements you often care about your response time or worst case execution time. In some areas of embedded, safety critical systems you're usually prohibited from using heap at all (instead, stuff is put in global variables or on the stack - so you're only growing in one direction).