Hi,
On 10/04/2016 01:33 PM, Pascal KISSIAN wrote:
Hi everybody,
I have an application where a small file is included at multiple places.
So far so good.
The problem is that this include consists in a small piece of code which is
inside a multi-level loop.
The include is done about an average of 100.000 times .
When I manually replace the include with the code which is inside, the
performance boost is about a 50-100 factor..
(with opcache enabled, it is far worst without opcache).
Despite the fact that your code really seems to be of bad quality as
others mentioned: Did you configure your opcache not to check the file
system each time if the file changed in the meantime?
Regards
Thomas
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php