Home >Backend Development >PHP Tutorial >Discuss how to improve PHP recursion efficiency_PHP Tutorial

Discuss how to improve PHP recursion efficiency_PHP Tutorial

WBOY
WBOYOriginal
2016-07-15 13:30:38998browse

In actual code programming, we will find that On my IIS server (CGI) mode, the result of my PHP recursive efficiency test is:

Non-recursive call The cost of the recursive call: 0.036401009559631
The cost of the recursive call: 0.053439617156982

On my Apache server, my test results are:

The cost of non-recursive calls: 0.022789001464844
The cost of recursive calls: 0.014809131622314

The results of PHP recursive efficiency are completely opposite, and the PHP versions are the same.

It seems that PHP recursive efficiency needs to be analyzed in detail.


www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/446282.htmlTechArticleIn actual code programming, we will find that on my IIS server (CGI) mode, my PHP is recursive The efficiency test results are: Cost of non-recursive calls: 0.036401009559631 Recursive calls...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn