|
|
|
|
|
by gpderetta
3286 days ago
|
|
Even when using a pool allocator, you still have unnecessary indirections which is expensive. One of the benefits of C++ is the ability of being able to allocate subobjects inline with the containing object or array. By forcing indirection, allocating subobjects requires navigating a potentially deeply nested tree. |
|
There are definitely things to be aware of before adopting such a pattern, or when trying to optimize code that uses it.