PHP performance hampered by require()

前端 未结 5 573
旧时难觅i
旧时难觅i 2021-01-19 18:25

I ran my code through xdebug profiler and saw more than 30 percent of the time is spent on the require() calls. What is the best way to improve on this? I saw some posts a

5条回答
  •  说谎
    说谎 (楼主)
    2021-01-19 18:47

    how many items are in your include path? and is the order of the locations sensible for your application? if you're using relative paths then it will check the include-path locations in order looking for a matching file.

提交回复
热议问题