Skip to content
Snippets Groups Projects
Forked from VTK / VTK
61892 commits behind the upstream repository.
  • David C. Lonie's avatar
    0d71a308
    Replace SafeDownCast calls on arrays with vtkArrayDownCast. · 0d71a308
    David C. Lonie authored
    SafeDownCast performs a series of virtual calls and string comparisons,
    which is quite slow, especially when used in worker functions.
    
    vtkArrayDownCast will switch between SafeDownCast and the more
    efficient FastDownCast (only available for common vtkAbstractArray
    subclasses) depending on whether or not FastDownCast is defined for
    the specific array type.
    0d71a308
    History
    Replace SafeDownCast calls on arrays with vtkArrayDownCast.
    David C. Lonie authored
    SafeDownCast performs a series of virtual calls and string comparisons,
    which is quite slow, especially when used in worker functions.
    
    vtkArrayDownCast will switch between SafeDownCast and the more
    efficient FastDownCast (only available for common vtkAbstractArray
    subclasses) depending on whether or not FastDownCast is defined for
    the specific array type.