< 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 there’s one thing game programmers obsess about, it’s performance. But fear not, vectors and other STL containers are incredibly efficient. In fact, they’ve 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.