title: Openlayers 3 mass feature update: update existing features or trash source and recreate from scratch?
body: <p>I want to build a Openlayers 3 map, wrapped in a React Component, that can track a fleet of vehicles in real-time. Consequently, the vehicle positions are being updated every second.</p>
  
  <p>Concerned about the performance implications of continuiously mutating objects or trash/replacing them.</p>
  
  <p>Do I built code infrastructure to go through and update each and every feature every update (at least once a second) </p>
  
  <p><strong>or</strong> </p>
  
  <p>do I just throw out the source of the fleet layer and rebuild the source and features with every real-time data update?</p>
  
  <p>The below link has been the most relevant I have found so far. Seeking out further advice or if someone has more specific experience of this tradeoff with Openlayers 3</p>
  
  <p><a href="https://softwareengineering.stackexchange.com/questions/304574/does-immutability-hurt-performance-in-javascript">https://softwareengineering.stackexchange.com/questions/304574/does-immutability-hurt-performance-in-javascript</a></p>