From e95addcbfacbfa0ab5b5b7f0db0a77baffe7ce64 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Tue, 2 May 2006 13:52:24 +0000 Subject: [PATCH] Attempt to increase smart_str performance through the use of larger default buffers. Biased micro benchmarks show it makes sense :P --- ext/standard/php_smart_str.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/standard/php_smart_str.h b/ext/standard/php_smart_str.h index 3fbee5d942..2f245bbc0e 100644 --- a/ext/standard/php_smart_str.h +++ b/ext/standard/php_smart_str.h @@ -35,11 +35,11 @@ } while (0) #ifndef SMART_STR_PREALLOC -#define SMART_STR_PREALLOC 128 +#define SMART_STR_PREALLOC 4096 #endif #ifndef SMART_STR_START_SIZE -#define SMART_STR_START_SIZE 78 +#define SMART_STR_START_SIZE 1024 #endif #ifdef SMART_STR_USE_REALLOC -- 2.50.1