Newsgroups: php.internals,php.internals Path: news.php.net Xref: news.php.net php.internals:89241 php.internals:89242 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 12619 invoked from network); 16 Nov 2015 20:14:03 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Nov 2015 20:14:03 -0000 X-Host-Fingerprint: 24.50.216.190 unknown Received: from [24.50.216.190] ([24.50.216.190:10436] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4C/51-34372-3093A465 for ; Mon, 16 Nov 2015 15:13:55 -0500 To: internals@lists.php.net,Rasmus Lerdorf , 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> Cc: internals@lists.php.net Message-ID: <564A38FB.2020101@gmail.com> Date: Mon, 16 Nov 2015 16:13:47 -0400 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: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 24.50.216.190 Subject: Re: [PHP-DEV] Support for writing and executing compiled opcode Stephen Coakley From: jgmdev@gmail.com (Jefferson Gonzalez) On 11/14/2015 08:03 PM, Rasmus Lerdorf wrote: > Beyond that I can't picture what possible use this could be. 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 theres 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. 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.