Performs very high speed memory allocation/disengagement but there are some restrictions.
- Memory of same size can only be allocated at all time.
- The object allocated by this cannot be global variable. In other words, the destruction time of this allocator must come prior to the desruction time of allocated object.
Characteristics
- Allocate memory block of memory page unit in advance and then use it, so it is recommended not to make too many CLookasideAllocator instances.
- Memory page is allocated to VirtualAlloc. Since it will not create internal fragmentation, it brings an effect of reducing the size of win32 working set.