summaryrefslogtreecommitdiff
path: root/ext/standard
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2006-05-02 13:52:24 +0000
committerIlia Alshanetsky <iliaa@php.net>2006-05-02 13:52:24 +0000
commite95addcbfacbfa0ab5b5b7f0db0a77baffe7ce64 (patch)
treec0fd9c80c8050c3fa2030ddf8d9cd5b598e02ab6 /ext/standard
parent8d1cc50067e950fb459902c9a5768c166ebf64ee (diff)
downloadphp-git-e95addcbfacbfa0ab5b5b7f0db0a77baffe7ce64.tar.gz
Attempt to increase smart_str performance through the use of larger
default buffers. Biased micro benchmarks show it makes sense :P
Diffstat (limited to 'ext/standard')
-rw-r--r--ext/standard/php_smart_str.h4
1 files 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