jamoma / JamomaCore

Jamoma Frameworks for Audio and Control Structure
Other
36 stars 14 forks source link

TTValue -- review and evaluate internal use of [] operator vs at() #317

Open tap opened 9 years ago

tap commented 9 years ago

The std::vector implementation of [] is not bounds-checked whereas at() is bounds-checked and throws an exception if out of bounds. Thus the later is safer but potentially slower.

  1. Review our usage as I'm not sure we have been consistent or thoughtful of this
  2. Perform some benchmarking tests to see if the use of the bounds-checked version is a significant real world problem for us (maybe it is if we use TTValue in perform loops).
  3. Do we intend to use TTValue in perform loops?