Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:96240 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 3823 invoked from network); 4 Oct 2016 19:28:49 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Oct 2016 19:28:49 -0000 Authentication-Results: pb1.pair.com smtp.mail=thomas@nunninger.info; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=thomas@nunninger.info; sender-id=unknown Received-SPF: error (pb1.pair.com: domain nunninger.info from 87.106.55.207 cause and error) X-PHP-List-Original-Sender: thomas@nunninger.info X-Host-Fingerprint: 87.106.55.207 mail.nunninger.info Linux 2.6 Received: from [87.106.55.207] ([87.106.55.207:53893] helo=mail.nunninger.info) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 13/CB-06241-EE204F75 for ; Tue, 04 Oct 2016 15:28:48 -0400 Received: from p5093df94.dip0.t-ipconnect.de ([80.147.223.148] helo=[192.168.178.21]) by mail.nunninger.info with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.69) (envelope-from ) id 1brVNP-0003Mr-Ga; Tue, 04 Oct 2016 19:28:03 +0000 To: Pascal KISSIAN , internals@lists.php.net References: <004101d21e33$124edf90$36ec9eb0$@lool.fr> Message-ID: Date: Tue, 4 Oct 2016 21:27:27 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <004101d21e33$124edf90$36ec9eb0$@lool.fr> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: 0.6 (/) X-Spam-Several-Recipients: Yes Subject: Re: [PHP-DEV] Feature Request: inline pseudo-instruction From: thomas@nunninger.info (Thomas Nunninger) 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