How to increase performance in PHP?

3

If I increase the memory_limit (default: 256MB) in PHP settings, will my application run faster or will I lose performance by consuming more server CPU processing?

    
asked by anonymous 30.11.2017 / 15:45

1 answer

3

Increasing the memory limit itself does not increase processor load. It is possible that some algorithm works better by having more available memory, but it is something punctual and would need to be measured.

Increasing the memory limit increases the chance of not fitting everything into RAM and making swap to disk can make performance tragic.

For more performance it can not be a random process, you have to define requirements, where is the bottleneck and look for strategies that meet that.

    
30.11.2017 / 15:55