]> granicus.if.org Git - php/commitdiff
Attempt to increase smart_str performance through the use of larger
authorIlia Alshanetsky <iliaa@php.net>
Tue, 2 May 2006 13:52:24 +0000 (13:52 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Tue, 2 May 2006 13:52:24 +0000 (13:52 +0000)
default buffers. Biased micro benchmarks show it makes sense :P

ext/standard/php_smart_str.h

index 3fbee5d942438b53a0ec94c3dca7d2a273101264..2f245bbc0eb8432d420033cfd0ace9f7c786d87a 100644 (file)
 } 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