just been going though my code and i create lots and lots of CModel by doing
CModel temp = new CModel()
then putting it into a container
in the end i end up doing this about 900 times and its slowing the loading down,
is there a good way to preallocate it in one go then point to it ,
if so is there any good tutorails i can use
Doing a simple test, calling 900 new on a simple class, takes 45 microseconds. If you are doing this 900 times, and it is seen as slow from a human perspective, then we can say for sure that it is not the memory allocation that is the problem. That means that using a special allocation pool will not help you.
Either it is the constructor that is the problem, your measurements are wrong, or I don't understand the question.