Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:96215 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 39491 invoked from network); 4 Oct 2016 11:33:26 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Oct 2016 11:33:26 -0000 Authentication-Results: pb1.pair.com header.from=php-mailing-list@lool.fr; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=php-mailing-list@lool.fr; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain lool.fr from 212.27.42.2 cause and error) X-PHP-List-Original-Sender: php-mailing-list@lool.fr X-Host-Fingerprint: 212.27.42.2 smtp2-g21.free.fr Received: from [212.27.42.2] ([212.27.42.2:38799] helo=smtp2-g21.free.fr) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 20/FF-06241-97393F75 for ; Tue, 04 Oct 2016 07:33:22 -0400 Received: from pcdepk (unknown [82.236.192.32]) by smtp2-g21.free.fr (Postfix) with ESMTP id 0560620038C for ; Tue, 4 Oct 2016 13:33:09 +0200 (CEST) To: Date: Tue, 4 Oct 2016 13:33:04 +0200 Message-ID: <004101d21e33$124edf90$36ec9eb0$@lool.fr> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0042_01D21E43.D5D9F980" X-Mailer: Microsoft Outlook 16.0 Thread-Index: AdIeMtLyJ9BiexDTRoulRB8lcEjfnA== Content-Language: fr Subject: Feature Request: inline pseudo-instruction From: php-mailing-list@lool.fr ("Pascal KISSIAN") ------=_NextPart_000_0042_01D21E43.D5D9F980 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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). The problem is that if I make a change within the code, I do have to not forget to make changes a dozen of places... Could it be possible to add a directive such as : inline < filename > That includes the file inline within the compiled pseudo code (at compile time) ... (it does not have a big importance for me that the target pseudo-code sets the line number of all inlined instructions to the line number of the inline directive) Am I the only people needing this feature ? Best regards, Pascal KISSIAN ------=_NextPart_000_0042_01D21E43.D5D9F980--