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

This commit is contained in:
scc%mozilla.org 2000-06-15 22:13:19 +00:00
Родитель 8ff35940e5
Коммит 9461eb8980
3 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -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<aCount){

Просмотреть файл

@ -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<aCount){

Просмотреть файл

@ -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<aCount){