Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:54150 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 99810 invoked from network); 22 Jul 2011 18:17:11 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Jul 2011 18:17:11 -0000 Authentication-Results: pb1.pair.com header.from=rasmus@lerdorf.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=rasmus@lerdorf.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain lerdorf.com from 74.125.83.42 cause and error) X-PHP-List-Original-Sender: rasmus@lerdorf.com X-Host-Fingerprint: 74.125.83.42 mail-gw0-f42.google.com Received: from [74.125.83.42] ([74.125.83.42:44739] helo=mail-gw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F0/95-03772-6AEB92E4 for ; Fri, 22 Jul 2011 14:17:11 -0400 Received: by gwb17 with SMTP id 17so1983604gwb.29 for ; Fri, 22 Jul 2011 11:17:08 -0700 (PDT) Received: by 10.68.54.230 with SMTP id m6mr2330190pbp.167.1311358627720; Fri, 22 Jul 2011 11:17:07 -0700 (PDT) Received: from [192.168.200.5] (c-50-131-46-20.hsd1.ca.comcast.net [50.131.46.20]) by mx.google.com with ESMTPS id k8sm1917062pbk.15.2011.07.22.11.17.06 (version=SSLv3 cipher=OTHER); Fri, 22 Jul 2011 11:17:06 -0700 (PDT) Message-ID: <4E29BEA1.9040506@lerdorf.com> Date: Fri, 22 Jul 2011 11:17:05 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:5.0) Gecko/20110627 Thunderbird/5.0 MIME-Version: 1.0 To: Ferenc Kovacs CC: John Carter , Gopal V , PHP internals References: <1311350192.3249.15.camel@lenny> <4E29A7E6.5080701@php.net> <4E29A95C.3030502@lerdorf.com> In-Reply-To: X-Enigmail-Version: 1.2pre Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] APC distribute cache/dump files? From: rasmus@lerdorf.com (Rasmus Lerdorf) On 07/22/2011 10:59 AM, Ferenc Kovacs wrote: > On Fri, Jul 22, 2011 at 7:04 PM, Pierre Joye wrote: >> yeah, just re read it and I realized that I miss the zend guard part, >> which is definitively not on my todos, and will never be :) >> >> On Fri, Jul 22, 2011 at 6:46 PM, Rasmus Lerdorf wrote: >>> The original question was for something akin to Zend Guard which is an >>> encryption mechanism. There really are no plans for that. >>> >>> -Rasmus >>> > > John maybe mentioned Zend Guard as an example, but imp he didn't > suggested to add the feature set of ZG, only that it would be a nice > feature, if APC would support dumping/restoring the cache. > this way for example you could add this to your build/deployment > workflow, so you don't have to warmup your cache on N machine for > optimal performance. Ah, but if it is for performance reasons, there is very little to be gained. The big win with APC comes from eliminating disk activity by pointing the executor directly at the op_array along with the in-memory function and class caches stored in shared memory. Restoring these from disk and sorting out where things go in memory is not going to be any quicker than simply recompiling the file. If we had a better opcode structure it theoretically could be faster, but as it is it would take a lot of work to get very small gains. -Rasmus