title: Initialize another variable or use the original over and over
body: <p>This is happening to me a lot during the making of this program and i thought it was better to ask you guys.</p>
  
  <p>For example, if I have a loop that calls a specific structure of a vector, is it better to call the vector over and over like this:</p>
  
  <pre><code>FP_list[n].callsign=...
  FP_list[n].de_airport=...
  FP_list[n].ar_airport=...;
  FP_list[n].aircraft_type=...
  FP_list[n].trueairspeed=...
  FP_list[n].FL_route.push_back(Aircraft.GetClearedAltitude());
  FP_list[n].last_WP=...
  FP_list[n].next_WP=...
  </code></pre>
  
  <p>...</p>
  
  <p>Or to declare a temporary variable and use it from that point on like this:</p>
  
  <pre><code>FP temp=FP_list[n];
  temp.callsign=...
  ...
  temp.next_WP=...
  </code></pre>
  
  <p>Which one it better in terms of memory consumption and running time?</p>
  
  <p>Thank you in advance</p>