I am using ob_start('ob_gzhandler')
for compressing my script.But the script takes too much time for execution. I added ob_end_flush()
method in the callback function of register_shutdown_function()
because i can't add ob_end_flush()
directly in the code.Is this the problem for the delay?
Please give me suggestions to speed up my script.Thank you
Asked
Active
Viewed 1,014 times
1

Muhammad Hassaan
- 7,296
- 6
- 30
- 50

ajay
- 355
- 3
- 8
- 17
-
How do you compare the delay? Did you use a profiler (xdebug, xhprof, ...)? – johannes Apr 27 '11 at 09:24
1 Answers
1
Suggestions? Well... Don't use ob_gzhandler
, use front-end abilities to zip output - apache, nginx can do this.

Muhammad Hassaan
- 7,296
- 6
- 30
- 50

OZ_
- 12,492
- 7
- 50
- 68