Create a modular application architecture
Modular architecture, as popularized by open-source software, often has better scalability, lower corrective and adaptive maintenance costs and more efficient code.
If there is a possibility that the website or online service’s features may be upgraded, it is better to place the basic features in a kernel and supplement them with extensions when necessary. This practice is applicable to all levels of granularity, from building a custom solution to choosing a HTTP server or CMS.
Free up the memory of variables that are no longer needed
Free up the RAM as soon as possible. In particular, delete tables that quickly fill up with large amounts of information.








