title: C++: Vector of pointers vs Fixed-size array performance
body: <p>Performance-wise, which is faster?</p>
  
  <p>A vector of object pointers allocated by the new operator? </p>
  
  <pre><code>std::vector&lt;Object *&gt; array;
  </code></pre>
  
  <p>Or an array allocated with new in the constructor?</p>
  
  <pre><code>Object[] objects;
  objects = new objects[64];
  </code></pre>
  
  <p>The idea is that in every frame, the program loops through each element reading/writing values for each element.</p>
  
  <p>Edit:</p>
  
  <p>The second snippet was pulled from an XNA book. I am not using XNA to write my framework, and I'm trying to figure out the best method for using containers in an application that requires speed.</p>