PHP Performance Research - Cache (1)

zhaozj2021-02-16  128

Cache - cache. The result of a large number of possible repetitions and the same calculations, thereby increasing the overall performance.

Usually, according to the parameters, the results of the calculation are different. At this time, the parameters can be used as the Key value of Cache.

Cache Category: 1. Cache running intermediate code. 2. Cache of the results of the results.

1. Cache running intermediate code

PHP is the interpreted language that requires Zend's engine to compile when executed. A large number of repeated compilation is one of the reasons why PHP performance. You can use the Zend's compiler to compile the PHP program, but this practice is very costly, and the Zend's compiler is not white. Another solution can use MMCache that can make Cache after "executable code" after compiling the Zend Engine. Of course, MMCache is a pure free thing. MMCache's cache advantage is not just like this.

转载请注明原文地址:https://www.9cbs.com/read-13991.html

New Post(0)