Original Post
Hi I'm about to create a simple memory system. I will use a pool of pre-determined size. A certain pool only contain one single type of objects. Objects will be allocated and deallocated one at the time (no array operations). The problem I'm facing is regarding memory allocation management. How to find a free "spot" in shortest time? Can I make the time to perform the two operations (allocation, deallocation) close to O(1)? Thank you very much :)