Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:86628 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 39629 invoked from network); 13 Jun 2015 20:17:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Jun 2015 20:17:51 -0000 Authentication-Results: pb1.pair.com smtp.mail=mails@thomasbley.de; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=mails@thomasbley.de; sender-id=unknown Received-SPF: error (pb1.pair.com: domain thomasbley.de from 85.13.137.24 cause and error) X-PHP-List-Original-Sender: mails@thomasbley.de X-Host-Fingerprint: 85.13.137.24 dd15934.kasserver.com Received: from [85.13.137.24] ([85.13.137.24:47294] helo=dd15934.kasserver.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3B/C2-07883-DEF8C755 for ; Sat, 13 Jun 2015 16:17:50 -0400 Received: from dd15934.kasserver.com (dd0800.kasserver.com [85.13.143.204]) by dd15934.kasserver.com (Postfix) with ESMTPSA id C3C232612F6; Sat, 13 Jun 2015 22:17:46 +0200 (CEST) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-SenderIP: 109.45.1.167 User-Agent: ALL-INKL Webmail 2.11 mobile In-Reply-To: <557C7EBE.3010007@gmail.com> References: <000201d0a4aa$40c2fae0$c248f0a0$@php.net> <557AD880.5070402@seld.be> <110601d0a54b$8ce6a380$a6b3ea80$@belski.net> <557B3D5C.8080100@lerdorf.com><557C7EBE.3010007@gmail.com> To: rasmus@lerdorf.com, j.boggiano@seld.be, internals@lists.php.net, jgmdev@gmail.com Message-ID: <20150613201746.C3C232612F6@dd15934.kasserver.com> Date: Sat, 13 Jun 2015 22:17:46 +0200 (CEST) Subject: Re: [PHP-DEV] PHP 7.0.0alpha1 Released for Testing! From: mails@thomasbley.de ("Thomas Bley") Jefferson Gonzalez schrieb am 13. Juni 2015 21:04: > On 06/12/2015 04:13 PM, Rasmus Lerdorf wrote: >> You can get even more speed by compiling with --enable-opcache-file and >> then in your php-cli.ini add: >> >> opcache.enable_cli=1 >> opcache.file_cache=/var/tmp >> opcache.file_cache_only=1 >> >> Then every time you run composer it won't have to recompile everything. >> >> -Rasmus >> > > Thats a pretty neat feature, but I was thinking why not make something > similar to what python did, where .pyc files where generated on the same > path of .py files with the opcodes. So maybe a new ini option can be > introduced like opcache.file_local=On. When this option is turned on the > opcache would check if myscript.phpc exists before compiling > myscript.php, if the .phpc file doesn't exists then it generates the > opcodes .phpc version. If no write permissions are available for current > directory then php would just skip the .phpc generation. > > One advantage of this is that if PHP is run on cgi mode (not > fast-cgi/fpm) you could still get the advantages of opcode caching on a > multiple virtual host environment. It would also be easier to setup. > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > with a separate directory you can use tmpfs which is better I think. Great new feature! Regards Thomas