Ob_start()减慢脚本的速度


ob_start() slows the script

我使用ob_start('ob_gzhandler')来压缩脚本。但是这个脚本的执行时间太长了。我在register_shutdown_function()的回调函数中添加了ob_end_flush()方法,因为我不能在代码中直接添加ob_end_flush()。这是延误的问题吗?请给我建议,加快我的脚本。谢谢你

建议?嗯…不要使用ob_gzhandler,使用前端功能压缩输出- apache, nginx可以做到这一点。