makes more sense when web pages are typically like 10KB-20KB.
I think it would be best to change the reallocation algorithm at least to
redoubling when it's full instead of incrementing and possibly use
a data structure similar to Zend/zend_static_allocator which uses memory
blocks and not realloc().
if (OG(lock)) {
return FAILURE;
}
- php_ob_init(4096, 1024, output_handler);
+ php_ob_init(40*1024, 10*1024, output_handler);
OG(php_body_write) = php_b_body_write;
return SUCCESS;
}
if (OG(lock)) {
return FAILURE;
}
- php_ob_init(4096, 1024, output_handler);
+ php_ob_init(40*1024, 10*1024, output_handler);
OG(php_body_write) = php_b_body_write;
return SUCCESS;
}