Browse Source

Attempt to increase smart_str performance through the use of larger

default buffers. Biased micro benchmarks show it makes sense :P
PHP-5.1
Ilia Alshanetsky 20 years ago
parent
commit
e95addcbfa
  1. 4
      ext/standard/php_smart_str.h

4
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

Loading…
Cancel
Save