adding ob_start() at beginning of index.php might speed up Drupal.
At least one of my servers says 4000ms page execution when no ob_start() & 400ms when it is turned on.
adding ob_start() at beginning of index.php might speed up Drupal.
At least one of my servers says 4000ms page execution when no ob_start() & 400ms when it is turned on.
Comments
Comment #1
yngens commentedon http://phplens.com/lens/php-book/optimizing-debugging-php.php it is said that
Is it the same with what doq proposes? should it be just ob_start() or ob_start("ob_gzhandler")?
Comment #2
kbahey commentedI can't reproduce your test results, so I can't say it is a general improvement. Must be something specific to your setup.
I ran ab (Apache benchmark) using
ab -c 10 -n 1000 http://something.example.com/Before adding ob_start() to the index.php
After adding the ob_start() to index.php
As you can see, the latter seems slower by a tiny bit.
Comment #3
marcingy commented