Re:Linked lists in C, with open source ADT
by spinlocked on Saturday January 19, 2013 @10:54PM
(#5085940)
Do you need magic to create an O(1) allocator for a pool of fixed size objects?
[ Parent
| on HN ]
Re:Linked lists in C, with open source ADT
by marshray on Saturday January 19, 2013 @11:39PM
(#5086026)
Yes, when (as in the general case of std::list) the number of objects is not known in advance.
Re:Linked lists in C, with open source ADT
by spinlocked on Sunday January 20, 2013 @12:29AM
(#5086102)
true. however, libstdc++ implements __pool_alloc for a reason.