How to increase performance in PHP?

Asked

Viewed 715 times

3

If I increase the memory_limit (default: 256MB) in PHP settings, my application will run faster or I will end up losing performance because it consumes more server CPU processing?

1 answer

3


Increasing the memory limit itself does not increase processor load. It is possible that some algorithm works better because it has 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 in RAM and making swap to disk can make the performance tragic.

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

Browser other questions tagged

You are not signed in. Login or sign up in order to post.