< Previous | Contents | Next >

Understanding Vector Performance

Like all STL containers, vectors provide game programmers with sophisticated ways to work with information, but this level of sophistication can come at a performance cost. And if theres one thing game programmers obsess about, its performance. But fear not, vectors and other STL containers are incredibly efficient. In fact, theyve already been used in published PC and console games. However, these containers have their strengths and weaknesses; a game programmer needs to understand the performance characteristics of the various container types so that he can choose the right one for the job.


 

Examining Vector GrowthExamining Element Insertion and Deletion