Do not copy online, how to modify the program optimization speed or compression to improve the speed
Reply content:
Do not copy online, how to modify the program optimization speed or compression to improve the speed
Owe you the AH ~
It's a good feeling to ask questions!!!
As long as you write the code without syntax errors, PHP speed is not slow
1. Front-end static page images, static file references, can be placed on a third-party CDN
2. Slow node in the database processing, analysis of slow query, index, data and cache
3. Configuration of CPU, bandwidth, etc. of the server
I feel the key is my own server configuration. Bandwidth. The configuration is high and it's fast.
To your server on the service plus slow log, what nginx ah phpfpm ah MySQL ah put these slow logs, found that more than 1 seconds or more than 2 seconds to optimize, do not tell me you do not understand slow log write what, then is to improve the hardware. Because I realized that all the time spent in 1-2 seconds. How the PHP can be strengthened.