Changed builtin Common::String capacity to 24 (on 32 bit systems), to make sizeof(String) 32; reduces overall memory req by 200k on my system; overall # of mallocs after this + the refcount memory pool change is almost unchanged
svn-id: r34644
This commit is contained in:
parent
dd433c24a2
commit
a408f4a776
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ protected:
|
|||
* than 8 makes no sense, since that's the size of member _extern
|
||||
* (on 32 bit machines; 12 bytes on systems with 64bit pointers).
|
||||
*/
|
||||
static const uint32 _builtinCapacity = 32;
|
||||
static const uint32 _builtinCapacity = 32 - sizeof(uint32) - sizeof(char*);
|
||||
|
||||
/**
|
||||
* Length of the string. Stored to avoid having to call strlen
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue