[Dcmlib] gdcm: string + map

Emmanuel Olart eolart at theralys.com
Fri Nov 14 17:15:53 CET 2003


Wow impressionnant ..

Est ce que ce genre de debordement de symboles peut etre la cause de
l'extreme lenteur de compilation de gdcmTS.o (plus de deux minutes sur une
grosse station depuis un commit ajoutant justement une string me semble t
il) ?

Si oui pourquoi ne pas l utiliser en effet.

Manu

----- Original Message -----
From: "Mathieu Malaterre" <Mathieu.Malaterre at creatis.insa-lyon.fr>
To: <dcmlib at creatis.insa-lyon.fr>; "Mailing list Hackers"
<creatis-hackers at creatis.insa-lyon.fr>
Sent: Friday, November 14, 2003 5:45 PM
Subject: [Dcmlib] gdcm: string + map


> En fouillant les sources de CMake je suis tombé sur:
>
> // use this class to shrink the size of symbols in .o files
> // std::string is really basic_string<....lots of stuff....>
> // when combined with a map or set, the symbols can be > 2000 chars!
> struct cmStdString : public std::string
> {
>    typedef std::string StdString;
>    typedef StdString::value_type             value_type;
>    typedef StdString::pointer                pointer;
>    typedef StdString::reference              reference;
>    typedef StdString::const_reference        const_reference;
>    typedef StdString::size_type              size_type;
>    typedef StdString::difference_type        difference_type;
>    typedef StdString::iterator               iterator;
>    typedef StdString::const_iterator         const_iterator;
>    typedef StdString::reverse_iterator       reverse_iterator;
>    typedef StdString::const_reverse_iterator const_reverse_iterator;
>
>    cmStdString(): StdString() {}
>    cmStdString(const value_type* s): StdString(s) {}
>    cmStdString(const value_type* s, size_type n): StdString(s, n) {}
>    cmStdString(const StdString& s, size_type pos=0, size_type n=npos):
>      StdString(s, pos, n) {}
> };
>
>
> Est-ce que ca vaut la peine d'etre pris en compte pour gdcm ?
>
> /mat
> cf: CMake/Source/cmStandardIncludes.h
>
> _______________________________________________
> Dcmlib mailing list
> Dcmlib at creatis.insa-lyon.fr
> http://www.creatis.insa-lyon.fr/mailman/listinfo/dcmlib
>




More information about the Dcmlib mailing list