From be54306f862b4c88b06397e266070903556f44f2 Mon Sep 17 00:00:00 2001 From: jpr Date: Fri, 21 Oct 2005 16:32:10 +0000 Subject: [PATCH] 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.) --- Testing/TestAllVM.cxx | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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; -- 2.48.1