Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:89243 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 15943 invoked from network); 16 Nov 2015 20:22:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Nov 2015 20:22:55 -0000 Authentication-Results: pb1.pair.com smtp.mail=rasmus@lerdorf.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=rasmus@lerdorf.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain lerdorf.com designates 209.85.160.180 as permitted sender) X-PHP-List-Original-Sender: rasmus@lerdorf.com X-Host-Fingerprint: 209.85.160.180 mail-yk0-f180.google.com Received: from [209.85.160.180] ([209.85.160.180:33476] helo=mail-yk0-f180.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CB/02-34372-E1B3A465 for ; Mon, 16 Nov 2015 15:22:54 -0500 Received: by ykdv3 with SMTP id v3so260501999ykd.0 for ; Mon, 16 Nov 2015 12:22:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lerdorf_com.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-type; bh=pvwDwYB0kKUH8AbmKjjmVib2KJ/iQeDl5+mXxW0/Gj0=; b=LqAxsp8eAO2/K3GCbSveZ8cdxJZuMApAnR1ny68/TPNety5b5KNMenn9ksy8G654+V JjPwzXlaAFQ3esISsoQTp3Ez246wnfedS/JWGOcYEx5skLqEjQVlRHSbHLgibh54X3sJ cWLHKjVBU+IHdoOhikhl1cl1FeJD8jBQKpLUu4+HyY/tphTz47ODo57SPtZgED9g55G6 UOCNNIsjAywnai4c/f0GyBF3kvLgiJVsw4Hal3qilNL7I556M2x1TPs+2Za5E43oVYd3 iyupi7k7reV8otEB44JG/XoiHZjlumx0cCP1X8SsBASbUXALxQSGA+OAq9E+oD5GJAVS sfJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-type; bh=pvwDwYB0kKUH8AbmKjjmVib2KJ/iQeDl5+mXxW0/Gj0=; b=NzCBxLfncazX1Rg7KPoagO5ZoTcqLBJ/HE3UTnsaHFCg6SDuDXnV5BgV7YR8rCLJsw 5xC+EWyKHTuNz7L3AkAcEu3z/C3hMX0ZD6/V3SBZTzirP3nbDOt/tvsjpadA9xRkvIm0 sX7aplVUbYpFhXIxjYx+kJ7w9sEqH8jASi9SqDF6i/MDsGT5OIWRgHH6lrLt9HA9HPg+ nbu604Hoy/A+AJdZ7UU9JE5+0WAIarPxmHXiqQvFjSsxRBADYCQ9WTuNeau0B1svez1l t+PcfYpWvy5WEenIv/QE6+OXQ9Ed8R8XDTgUk9yXFXJwG1FAekKJQ/xZEPOrXmWrv10S p8tg== X-Gm-Message-State: ALoCoQn64/dDheiIEpYet6ckDHtBlRFsIk+byCBtP95B/Dl1ezHbcmQLeQ+zQweDnNJlLemw5xSW X-Received: by 10.129.74.212 with SMTP id x203mr41483828ywa.69.1447705370755; Mon, 16 Nov 2015 12:22:50 -0800 (PST) Received: from [10.252.9.10] ([64.124.192.210]) by smtp.googlemail.com with ESMTPSA id 204sm36593968ywz.39.2015.11.16.12.22.48 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Nov 2015 12:22:49 -0800 (PST) To: Jefferson Gonzalez , internals@lists.php.net References: <12.A1.62946.CB756465@pb1.pair.com> <564659DF.5070904@php.net> <77.62.62946.F6D56465@pb1.pair.com> <80ED4CA4-1548-48B5-A94B-B3FA1377C755@lerdorf.com> <54.63.62946.75D96465@pb1.pair.com> <564A38FB.2020101@gmail.com> Message-ID: <564A3B14.1040003@lerdorf.com> Date: Mon, 16 Nov 2015 15:22:44 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <564A38FB.2020101@gmail.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="UVJ0wvAtQV0JqwIUdFDNxrAPAGdpodrEb" Subject: Re: [PHP-DEV] Support for writing and executing compiled opcode Stephen Coakley From: rasmus@lerdorf.com (Rasmus Lerdorf) --UVJ0wvAtQV0JqwIUdFDNxrAPAGdpodrEb Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 11/16/2015 03:13 PM, Jefferson Gonzalez wrote: > On 11/14/2015 08:03 PM, Rasmus Lerdorf wrote: >> Beyond that I can't picture what possible use this could be. >=20 > I also think that the ability to have a .phpc and .php side by side > would be nice, but not for hiding the source code. It would be useful > especially for php-cgi and secondary for php-cli. In php-cgi case there= s > people who still host multiple sites on a single server and use the > php-cgi method because it doesn't requires to have an always running > instance like with php-fpm. >=20 > Lets say you are hosting 100 sites on a single server, imho it would be= > less resourceful to run php-cgi processes on demand than having more > than 100 fpm processes idling for requests. So in this scenario, having= > the flexibility to load byte code for php-cgi process would be a nice > performance boost. But that is exactly what the file-based opcache does by itself. The only speedup you achieve by trying to distribute the .bin files would be a minor boost the first time a cli script is executed. All subsequent runs of the script would hit the cache. The added complexity and potential version conflicts of trying to distribute the .bin files doesn't seem like it would be worth the trouble for such a minor one-time performance benefit. -Rasmus --UVJ0wvAtQV0JqwIUdFDNxrAPAGdpodrEb Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iEYEARECAAYFAlZKOxgACgkQlxayKTuqOuDoSgCeOnm7A1I8Op/hVwHe5cqbVe7z YRwAmwZUX19u5WFT0yjvftPjf3/yDMON =0n+c -----END PGP SIGNATURE----- --UVJ0wvAtQV0JqwIUdFDNxrAPAGdpodrEb--