Skip to content
  • David C. Lonie's avatar
    Reduce calls to DataChanged() in vtkDataArrayTemplate. · a96bd710
    David C. Lonie authored
    Setting the number of tuples caused DataChanged() to be called
    three times. This patch reduces this to one call.
    
    Further, a RebuildLookup variable is added to vtkDataArrayTemplate that
    allows faster calls to DataChanged() that do not require branching.
    
    A style issue is also corrected in SetNumberOfValues.
    
    Change-Id: I5410db9880d9f5c6f9ae2dfb075e81d06f46e275
    a96bd710