vtkOSPRayMaterialLibrary::InternalParseJSON() is slow when materials library has many textures.
A large amount of time is spent in a call to vtksys::SystemTools::GetParentDirectory(filename)
inside a loop over textures. Since this parent never changes, moving the call outside the loop should speed things up.