From: Ilia Alshanetsky Date: Tue, 2 May 2006 13:52:24 +0000 (+0000) Subject: Attempt to increase smart_str performance through the use of larger X-Git-Tag: php-5.1.4~21 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e95addcbfacbfa0ab5b5b7f0db0a77baffe7ce64;p=php Attempt to increase smart_str performance through the use of larger default buffers. Biased micro benchmarks show it makes sense :P --- 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