Tweaking PHP.INI for maximum performance
Tweaking PHP.INI for maximum performance
am 14.09.2007 18:13:18 von ragearc
I would like to know any configurations to speed up PHP's execution. I
have increased the memory limit and decreased the amount of extensions
loaded, but do you know anything else?
Re: Tweaking PHP.INI for maximum performance
am 14.09.2007 18:30:09 von zeldorblat
On Sep 14, 12:13 pm, RageARC wrote:
> I would like to know any configurations to speed up PHP's execution. I
> have increased the memory limit and decreased the amount of extensions
> loaded, but do you know anything else?
Probably has less to do with settings in php.ini than it does with
your code. Have you run into specific performance problems? If you
haven't then you're wasting your time. Read #5 from this article:
FClnxw01linuxcodetips>
Re: Tweaking PHP.INI for maximum performance
am 14.09.2007 18:41:55 von Michael Fesser
..oO(RageARC)
>I would like to know any configurations to speed up PHP's execution. I
>have increased the memory limit and decreased the amount of extensions
>loaded, but do you know anything else?
If you experience performance issues, use a profiler to check your code
for bottlenecks. Have a look at the Xdebug extension (can be installed
from PECL).
http://xdebug.org/
Micha
Re: Tweaking PHP.INI for maximum performance
am 14.09.2007 19:04:40 von ragearc
Nope, no bottlenecks, I just want to execute a huge loop (Billions of
times) and I want to execute it as swiftly as possible.
Re: Tweaking PHP.INI for maximum performance
am 14.09.2007 19:25:48 von luiheidsgoeroe
On Fri, 14 Sep 2007 19:04:40 +0200, RageARC wrote:
> Nope, no bottlenecks, I just want to execute a huge loop (Billions of
> times) and I want to execute it as swiftly as possible.
On the risk of getting offtopic: I'd say a better tool for that kind of
job might be C++, possibly getting it's variables from a PHP script..
--
Rik Wasmus
Re: Tweaking PHP.INI for maximum performance
am 14.09.2007 19:29:05 von ragearc
Yes I could use C++ but the fact is I'm not too good at it, and as I
already have my loop in PHP, it would best if I used it.