diff options
| author | Ilia Alshanetsky <iliaa@php.net> | 2006-05-02 13:52:24 +0000 |
|---|---|---|
| committer | Ilia Alshanetsky <iliaa@php.net> | 2006-05-02 13:52:24 +0000 |
| commit | e95addcbfacbfa0ab5b5b7f0db0a77baffe7ce64 (patch) | |
| tree | c0fd9c80c8050c3fa2030ddf8d9cd5b598e02ab6 /ext/standard/php_smart_str.h | |
| parent | 8d1cc50067e950fb459902c9a5768c166ebf64ee (diff) | |
| download | php-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/php_smart_str.h')
| -rw-r--r-- | ext/standard/php_smart_str.h | 4 |
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 |
