2 ms·
Bump allocation sounds a lot like heap allocation. Is a "bump" a small heap?
by moron4hire 8y ago
Bump allocation sounds a lot like heap allocation. Is a "bump" a small heap?
- steveklabnik 8y agoBump allocation is a strategy for building an allocator; where that allocator's memory is is irrelevant to the algorithm itself. Most of the time, that is the heap, but you could write an allocator that takes a bunch of stack memory and hands it out too.
- Rusky 8y agoAs the article describes, it's a small (or large...) heap with some specific behavior and restrictions- space is allocated in order, making allocation extremely fast; and in exchange there's no way to free individual objects, you must instead free them all at once.