From 9461eb8980150b4c69b40849b9180294b88cef22 Mon Sep 17 00:00:00 2001 From: "scc%mozilla.org" Date: Thu, 15 Jun 2000 22:13:19 +0000 Subject: [PATCH] undo the change of the 10th. The code is still in, conditioned on |NS_DONT_USE_CHUNKY_STRING_ALLOCATION|. The performance hit was unacceptable, and checking the original change in on the tip was a mistake. r=rpotts; a=leaf, phil --- string/obsolete/nsStr.cpp | 2 +- xpcom/ds/nsStr.cpp | 2 +- xpcom/string/obsolete/nsStr.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/string/obsolete/nsStr.cpp b/string/obsolete/nsStr.cpp index 3ed68c4a67bd..67e02a2dce96 100644 --- a/string/obsolete/nsStr.cpp +++ b/string/obsolete/nsStr.cpp @@ -656,7 +656,7 @@ PRBool nsStr::Alloc(nsStr& aDest,PRUint32 aCount) { static int mAllocCount=0; mAllocCount++; -#ifdef NS_USE_CHUNKY_STRING_ALLOCATION +#ifndef NS_DONT_USE_CHUNKY_STRING_ALLOCATION //we're given the acount value in charunits; now scale up to next multiple. PRUint32 theNewCapacity=kDefaultStringSize; while(theNewCapacity