BUG: Fix slowdown when reading large bin files.
authorUtkarsh Ayachit <utkarsh.ayachit@kitware.com>
Tue, 26 Aug 2014 20:21:57 +0000 (16:21 -0400)
committerUtkarsh Ayachit <utkarsh.ayachit@kitware.com>
Tue, 26 Aug 2014 20:21:57 +0000 (16:21 -0400)
commitb937dbf1af4f930b946ade0d5556b4eb47979755
tree0457b663f7a613fd38fb4fd7c8bf9ffb5070585a
parenta0b37c0f7b852779702e89cb8b239b8474b9d203
BUG: Fix slowdown when reading large bin files.

In it's CanReadFile() vtkEnsembleReader was opening large binary files
entirely before determining that it can't read it. That cause incredible
slowdown when reading large bin files. Fixed that by removing
CanReadFile(). vtkEnsembleReader can just use extension matching to
determine if it can read the file.

Change-Id: Ic2b817ecd6e0e5cfdd5a1c5013a085a392640fef
ParaViewCore/VTKExtensions/Default/vtkEnsembleReader.cxx
ParaViewCore/VTKExtensions/Default/vtkEnsembleReader.h