зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
8ff35940e5
Коммит
9461eb8980
|
@ -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){
|
||||
|
|
Загрузка…
Ссылка в новой задаче