📜 ⬆️ ⬇️

In the wake of the article "A collection of tips and facts on optimizing PHP scripts"

Yesterday, after reading the post " Collection of tips and facts on optimizing PHP scripts, " I was at a loss on some points of the article. Very often, the work has to deal with large projects. For the past 5 years I have been working with high loads and, as it seems to me, I have gained a good experience in their development and support. I do not want to start holivary and in detail to paint all the subtleties of project optimization. I just want to express my point of view on some of the points voiced in the article and, if the user is supporting me, with great pleasure this article will be the beginning of a series of articles on optimization.

The most important rule to remember when optimizing is: premature optimization is the root of all ills.


')

Optimization Tips


Clear code is 99% better optimized




A few simple requests are easier to cache than one complex




Try to cache all the data that comes to you from the database




Architecture Tips




PS The topic does not pretend to be innovative and is only a look at optimization from the development of large projects.
PPS If you are minus in karma, then at least write in the comments for what.

Source: https://habr.com/ru/post/112637/


All Articles