From 8c7abdf024f32e566480d2d978a4cd4399435baa Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Fri, 2 Jun 2006 13:00:27 +0000 Subject: Allocate minimum 16 bytes on String(str) call. Reduces 2.500 malloc() calls on startup svn-id: r22834 --- common/str.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common/str.h') diff --git a/common/str.h b/common/str.h index b345000164..1e7fa1577b 100644 --- a/common/str.h +++ b/common/str.h @@ -45,7 +45,7 @@ public: #endif String() : _str(0), _len(0), _capacity(0) { _refCount = new int(1); } - String(const char *str, int len = -1); + String(const char *str, int len = -1, int capacity = 16); String(const String &str); virtual ~String(); -- cgit v1.2.3