peiyongz 2004/11/10 17:31:54 Modified: c/src/xercesc/util ValueVectorOf.c BaseRefVectorOf.c Log: Avoid unnecessary expansion -- patch from Christian Revision Changes Path 1.11 +4 -1 xml-xerces/c/src/xercesc/util/ValueVectorOf.c Index: ValueVectorOf.c =================================================================== RCS file: /home/cvs/xml-xerces/c/src/xercesc/util/ValueVectorOf.c,v retrieving revision 1.10 retrieving revision 1.11 diff -u -r1.10 -r1.11 --- ValueVectorOf.c 8 Sep 2004 13:56:23 -0000 1.10 +++ ValueVectorOf.c 11 Nov 2004 01:31:54 -0000 1.11 @@ -16,6 +16,9 @@ /** * $Log$ + * Revision 1.11 2004/11/11 01:31:54 peiyongz + * Avoid unnecessary expansion -- patch from Christian + * * Revision 1.10 2004/09/08 13:56:23 peiyongz * Apache License Version 2.0 * @@ -281,7 +284,7 @@ { unsigned int newMax = fCurCount + length; - if (newMax < fMaxCount) + if (newMax <= fMaxCount) return; // Avoid too many reallocations by expanding by a percentage 1.8 +1 -1 xml-xerces/c/src/xercesc/util/BaseRefVectorOf.c Index: BaseRefVectorOf.c =================================================================== RCS file: /home/cvs/xml-xerces/c/src/xercesc/util/BaseRefVectorOf.c,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- BaseRefVectorOf.c 8 Sep 2004 13:56:21 -0000 1.7 +++ BaseRefVectorOf.c 11 Nov 2004 01:31:54 -0000 1.8 @@ -264,7 +264,7 @@ { unsigned int newMax = fCurCount + length; - if (newMax < fMaxCount) + if (newMax <= fMaxCount) return; // Avoid too many reallocations by providing a little more space
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]