Page 1 of 1

How to speed up php by removing debugging option?

PostPosted: 08. August 2014 10:53
by helpme128
I am using xampp1.8.3. I want to speed up the php code. Inside phpinfo(), it was seen under `Configure Command` the option "--enable-debug-pack". I suspect the option `--enable-debug-pack` is slowing down my code. How can I remove this and speed up php in xampp?

Thank you.

Re: How to speed up php by removing debugging option?

PostPosted: 08. August 2014 11:16
by Nobbie
helpme128 wrote:I am using xampp1.8.3. I want to speed up the php code.


You cannot speed up the php code.

helpme128 wrote:I suspect the option `--enable-debug-pack` is slowing down my code. How can I remove this and speed up php in xampp?


I dont know, if debug code is activated at runtime (there maybe an additional option for that), but anyway, this does slow down your php code and you cannot speed up php code (at least not measurable).

If you have performance problems, you should tell us where and how, but php itself usually isnt a bottleneck. Mostly MySQL or Server Connection or huge I/O are bottlenecks. Pure PHP Code usually does not even take 1/10s for a modern CPU, only very very computationally intensive code may slow down your application.