Maks Orlovich <mo002j@mail.rochester.edu> wrote: > > + //Don't pool too many. > + if (count > 1000) > + { > + ::free(alloc); > + realFreed++; > + } > + else This is freeing the cache-hot memory while retaining the cache-cold memory. It would be better to implement full LIFO here.