diff options
author | Max Horn | 2008-09-24 20:35:31 +0000 |
---|---|---|
committer | Max Horn | 2008-09-24 20:35:31 +0000 |
commit | a408f4a7761e76724f552e93a075409a609b94d3 (patch) | |
tree | dc999b44e04a7d09dd23af9f702ade35a0dddffe /common | |
parent | dd433c24a29ff2520c879822235332a9fb25e87a (diff) | |
download | scummvm-rg350-a408f4a7761e76724f552e93a075409a609b94d3.tar.gz scummvm-rg350-a408f4a7761e76724f552e93a075409a609b94d3.tar.bz2 scummvm-rg350-a408f4a7761e76724f552e93a075409a609b94d3.zip |
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
Diffstat (limited to 'common')
-rw-r--r-- | common/str.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/str.h b/common/str.h index 20914c1f1f..772718a087 100644 --- a/common/str.h +++ b/common/str.h @@ -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 |