From: jpr Date: Fri, 21 Oct 2005 16:32:10 +0000 (+0000) Subject: Speed up -a little bit- the Loading, avoiding to parse any Sequence, not only X-Git-Tag: OpenJPEG.Version1.2~240 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=be54306f862b4c88b06397e266070903556f44f2;p=gdcm.git Speed up -a little bit- the Loading, avoiding to parse any Sequence, not only shadow ones. (any way *all* the sequences are skipped a prpcessing time.) --- diff --git a/Testing/TestAllVM.cxx b/Testing/TestAllVM.cxx index 425567e2..e0181e9c 100644 --- a/Testing/TestAllVM.cxx +++ b/Testing/TestAllVM.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: TestAllVM.cxx,v $ Language: C++ - Date: $Date: 2005/10/21 15:16:22 $ - Version: $Revision: 1.5 $ + Date: $Date: 2005/10/21 16:32:10 $ + Version: $Revision: 1.6 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -25,8 +25,11 @@ int DoTheVMTest(std::string const &filename) { gdcm::File file; - // Do not test unknow VM ... - file.SetLoadMode( gdcm::LD_NOSHADOW | gdcm::LD_NOSHADOWSEQ ); + // - Do not test unknow VM in shadow groups (in element 0x0000 is present + // - Skip Sequences (if they are 'True Length'); loading will be quicker + // (anyway, Sequences are skipped at processing time ...) + file.SetLoadMode( gdcm::LD_NOSHADOW | gdcm::LD_NOSEQ ); + file.SetFileName( filename ); if( !file.Load() ) //would be really bad... return 1;