Hello all,
I'm looking for a way to quickly allocate a high number of small objects on the heap. I have attached a sample program with what I'm trying to do; when I allocate a vector of objects it's hundreds of times faster than allocating a vector of pointers and new()'ing every object. That is to be expected of course, I was just wondering if there is a way to speed things up (ie, allocate a bunch of memory, and have the pointers in my vector point to it). I hope I explained myself clearly; the code will illustrate, I think.
cheers,
roel
