Re:Writing a simple pool allocator in C
by kazinator on Thursday January 09, 2025 @12:48AM
(#42642035)
Suppose the information did happen to search through the free blocks. Suppose you put them into an array instead of a linked list. They can't actually be in the array, you see? The blocks are in the pool heap wherever they happen to be. So the array has to point to them. As you walk through the array you have to do reference the pointers. The only way it's better is that they are not dependent loads. But you have this array to manage now.
[ Parent
| on HN ]
There are no comments on this comment yet.