Original Post
I am trying to implement some data pools for materials and textures and I was wondering how I should do it. Should I dynamically create an array of size, say 50, and as soon as it is entirely filled use memrealloc to make it larger, and then as soon as it is filled, resize it again. Or should I use vectors to dynamically allocate memory. Or should I use vectors to contain a group class which creates the required arrays. I've seen different books use different techniques. The first and second one are the easiest to implement, however I'd like to know which is faster or better in any other way. Or is there another way I should be looking at this problem perhaps?