Closed jackwu365 closed 8 years ago
我在php5.5.15上测试了执行这个循环30次,耗时1s左右正常(linux vm,E5620 @ 2.40GHz, 1core 4GMem) ,因为opencc_open这个调用要打开一个4M左右的文件, 这个步骤非常的消耗资源. 不知道你遇到的情况是什么样的, 如果是执行了几百次循环的话,超时也是正常的.
我們測試過這個PR (https://github.com/NauxLiu/opencc4php/pull/21) 會避免call opencc_open()多次的問題
一个页面多次调用,会出现php-fpm 超时。。。