dbertoni    00/07/01 19:41:44

  Modified:    c/src/PlatformSupport AttributeListImpl.cpp
                        AttributeListImpl.hpp
  Log:
  Reserve a default amount of space in the vector of attributes.
  
  Revision  Changes    Path
  1.9       +1 -0      xml-xalan/c/src/PlatformSupport/AttributeListImpl.cpp
  
  Index: AttributeListImpl.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/PlatformSupport/AttributeListImpl.cpp,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- AttributeListImpl.cpp     2000/06/14 21:47:23     1.8
  +++ AttributeListImpl.cpp     2000/07/02 02:41:42     1.9
  @@ -74,6 +74,7 @@
        m_AttributeKeyMap(),
        m_AttributeVector()
   {
  +             m_AttributeVector.reserve(eDefaultVectorSize);
   }
   
   
  
  
  
  1.7       +6 -0      xml-xalan/c/src/PlatformSupport/AttributeListImpl.hpp
  
  Index: AttributeListImpl.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/PlatformSupport/AttributeListImpl.hpp,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- AttributeListImpl.hpp     2000/05/29 22:30:09     1.6
  +++ AttributeListImpl.hpp     2000/07/02 02:41:43     1.7
  @@ -160,6 +160,12 @@
        typedef std::vector<XMLCh>      XMLChVectorType;
   #endif
   
  +     // Default vector allocation size.
  +     enum
  +     {
  +             eDefaultVectorSize = 5
  +     };
  +
        // A struct to hold information about each attribute.
        struct AttributeVectorEntry
        {
  
  
  

Reply via email to