Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:95813 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 65260 invoked from network); 8 Sep 2016 22:21:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Sep 2016 22:21:06 -0000 Authentication-Results: pb1.pair.com header.from=cmbecker69@gmx.de; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=cmbecker69@gmx.de; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmx.de designates 212.227.17.21 as permitted sender) X-PHP-List-Original-Sender: cmbecker69@gmx.de X-Host-Fingerprint: 212.227.17.21 mout.gmx.net Received: from [212.227.17.21] ([212.227.17.21:54656] helo=mout.gmx.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F6/F6-61313-054E1D75 for ; Thu, 08 Sep 2016 18:21:05 -0400 Received: from [192.168.2.103] ([79.243.115.246]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0MWTSA-1bXbAA0OTK-00XbOh; Fri, 09 Sep 2016 00:20:56 +0200 To: Andrea Faulds , internals@lists.php.net References: <9203225f-3367-6f31-7aa7-2a8ef373c858@gmx.de> <5E.70.06456.AB130D75@pb1.pair.com> Message-ID: <8fbf9eb2-82b8-7b9a-1207-891a8c4546e5@gmx.de> Date: Fri, 9 Sep 2016 00:20:59 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <5E.70.06456.AB130D75@pb1.pair.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:BPHy4Jhp5eCrE6LwmkjnK8GP1fJVh29CYA57Hj6ATRVcQJ2Rd9L xxs7OZcz41lb0Y/QazEO9qZY27artzmlnP5ROnC/o0jPVvw8hjEBaPRl73tlI4BQL27ATo9 5UiIaht4q+hJhxzUwx6MZDMVO7BvCIDOaWryGnFDrTZTZ3lwlbrBWWKADz0uhLozupTa7+d VX2idomHQIYtOcL70fwgA== X-UI-Out-Filterresults: notjunk:1;V01:K0:tscXfPImo1k=:kBE4/q5IAzU5V7I0vMJEk8 9NpJGk+kR2zQlY/Z+k+LkSxCS8bowexmUO2RoIngmhnanuszCIIKKeqkUQVIR0QIUeSv2rJtk Q8W6+vwqe50D8/8A+xMFNBpsq71Z7b3jn1E1j8hKQwQhYX9+X0o2dmYAhxZDdtc3ptP40SoOn fhtI8NNEz2spdUF7YzVaYKAoxa5ICt9FCcEl4aIZn0Ubc0BRrS4hDFLcgyZn57IQM4T/obgGI KMxK+/bkBHyLCZnUS8YrGR2AjDoyzQIRYn5oYf2FyV4xfWUJIghN0+CYfNU0faMXPNyGfe++g h3ZQQHpIIsI1Y3zJortft5+EN4B2wVufXQwJp2ctyYctOLf+m+1AxXrNrUmfF8eZavHm/Xisk sqQY/Vl01bunroeMl5It4ZIIE9in7kWIV/ULQaMVx4R/kfvohsC1xytJoeuvY0dTB/xPJP/OR tzsEIR1Obcli4WLXocPPW+WBzM9StJfs4aj9RLi/BC1KzmETN4UYqg+RZ5EtUNhMlwgadVqQL 7g9NU5NKtapgUOe6w+y3PaB6/72P5JbsgzJ2Icw5vimR9FYFpYpvAZMSEHDdO5RpnMd+uwDuI JALqNmPDUt4fAi2GAlXwbsS37WFZuCLXz7rOBZciCkGDLd02C55eW+Tk5hqbLb2gHlzeq3JFV ubX+fa5eM7BcRzkF0tdyuedAhNEgis0gesvJwcFu2ceoxVxPDNNjVCMiwtQs5kJ0SNAhgcRiJ Oc6+ZixzzoKTgRVDekJftE/ww3JRuW6pegF+rIIgXhy+5DTTPPYIMvNvluxPReDHErPXDkllH WvcfMl4 Subject: Re: The death of `#ifndef FAST_ZPP`? From: cmbecker69@gmx.de ("Christoph M. Becker") Hi Andrea! On 07.09.2016 at 17:26, Andrea Faulds wrote: > Christoph M. Becker wrote: > >> On 04.05.2016 at 18:11, Andrea Faulds wrote: > > This is a fair point. Functions using Fast ZPP have larger code size, > because of aggressive inlining. > > If every function used it, I suppose it might bloat the size of the PHP > binary somewhat. And probably for no good reason. The performance overhead of zend_parse_parameters() can probably be ignored for a lot of functions, and while it is somewhat harder to read, besides it's being space-saving, it is way easier to debug. There are, however, functions that would greatly benefit from using the fast ZPP API (e.g. imagecolorat(), see commit 0bf11d1e), so I'd welcome code reviews regarding (fast) ZPP. > In any case, thanks to some uncaught bugs in dead code, no stable > release of PHP 7 has been able to compile with FAST_ZPP disabled anyway, > which means I can be certain nobody is using it. I have successfully compiled a recent master with FAST_ZPP undefined. While that was with `--disable-all`, I can imagine that some extensions would also compile, so perhaps somebody actually uses that feature. However, even if that is the case, I don't see necessity to do so. -- Christoph M. Becker