As we discussed in the first recipe in this chapter, preallocation of all memory used by the application is an efficient strategy that helps embedded applications avoid various pitfalls related to memory fragmentation and allocation time.
One disadvantage of ad-hoc memory preallocation is that the application is now responsible for the tracking of preallocated object usage.
Object pools aim to hide the burden of object tracking by providing a generalized and convenient interface, similar to dynamic memory allocation but working with objects in the preallocated arrays.