13.2 Performance ConsiderationsThis is NOT the latest copy of this book; click here for the latest version.
Output buffering generally will not affect the speed of your web server by any great amount, unless you choose to compress your content - compression takes up a bit of CPU time, which will slow your server down.
However, the amount of bandwidth you use will be cut by about 40% because of the compression, which means your server will spend less time sending data across the network. Your compression mileage may vary - if you have lots of pictures, this figure will be lower; if you are sending lots of XML, this will be much higher.
|
Want to see this stuff in print? PHP in a Nutshell takes the core topics covered here, adds in thousands of edits from the editorial team and myself, and combines them to make an unbeatable reference for PHP programmers at all levels.
My latest book has hundreds more tips on how to use PHP, Apache, and MySQL, plus Perl, Python, shell scripts, performance tuning, and more!
|